32 lines
705 B
C#
32 lines
705 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security;
|
|
using BITFALL.Cosmetic;
|
|
using BITKit;
|
|
using BITKit.Entities;
|
|
using BITKit.Steamwork;
|
|
using UnityEngine;
|
|
using YooAsset;
|
|
using Object = UnityEngine.Object;
|
|
|
|
namespace BITFALL.Entities.Cosmetic
|
|
{
|
|
public class EntityCosmeticService : EntityBehavior
|
|
{
|
|
[SerializeReference, SubclassSelector] private ICosmeticService cosmeticService;
|
|
public override void Initialize(IEntity _entity)
|
|
{
|
|
base.Initialize(_entity);
|
|
_entity.As<Entity>().AddService<ICosmeticService>(cosmeticService);
|
|
}
|
|
|
|
public override void OnStart()
|
|
{
|
|
base.OnStart();
|
|
cosmeticService.SetDirty();
|
|
}
|
|
}
|
|
}
|