Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        if (_instance)
        {
            Destroy(_instance);
        }

        _instance = this;

        _beginTime = Time.time;
        _trans     = GetComponent <RectTransform> ();

        SaisonChangeMonthChangeEvent.AddListener(m => Debug.Log("Changement de mois = " + GetMonth()));

        SaisonChangeMonthChangeEvent.Invoke(_month);
    }
Ejemplo n.º 3
0
 private void OnDestroy()
 {
     Bufferise(false);
     SaisonTime.GetInstance().SaisonChangeMonthChangeEvent.RemoveListener(ChangeMonth);
 }