Ejemplo n.º 1
0
 void Start()
 {
     _startTime = Time.time;
     bp         = FindObjectOfType <BattleProgress>();
     bp.SetDiff(0);
     comboCounterItem.SetProgress(0);
     StartCoroutine(UpdateTime());
     LoadLevel(1);
 }
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
     EventManager.instance.SubscribeEvent((int)EventType.CharacterBorn, OnCharacterBorn);
     EventManager.instance.SubscribeEvent((int)EventType.CharacterDead, OnCharacterDead);
 }