Exemple #1
0
        /*/
         * [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();
        }
Exemple #2
0
 private void OnDestroy()
 {
     Bufferise(false);
     SaisonTime.GetInstance().SaisonChangeMonthChangeEvent.RemoveListener(ChangeMonth);
 }