/*/ * [SerializeField] private Sprite State1; * [SerializeField] private Sprite State2; * [SerializeField] private Sprite State3; * //*/ //private float _timeState; // Use this for initialization private void Start() { _spriteRenderer = GetComponent <SpriteRenderer>(); SaisonTime.GetInstance().SaisonChangeMonthChangeEvent.AddListener(ChangeMonth); _activeBuffs = new List <Cellule.Buff>(); Reset(); }
private void OnDestroy() { Bufferise(false); SaisonTime.GetInstance().SaisonChangeMonthChangeEvent.RemoveListener(ChangeMonth); }