Пример #1
0
    new void Awake()
    {
        base.Awake();


        emission = particles.emission;

        //TODO: make better or remove
        //StartCoroutine(AwarenessLoop());

        OnLevelUp.AddListener(NextLevel);
    }
Пример #2
0
 /// <summary>
 /// Adds listener for level up event
 /// </summary>
 /// <param name="listener">listener for level up event</param>
 public void AddLevelUpListener(UnityAction <int> listener)
 {
     levelUp.AddListener(listener);
 }