public void OnActorClicked(ActorPropertiesEventArgs e)
 {
     if (ActorClicked != null)
     {
         ActorClicked(this, e);
     }
 }
Esempio n. 2
0
 void AddEnemyToList(object sender, ActorPropertiesEventArgs e)
 {
     if (!_enemies.Contains(e.Sender))
     {
         _enemies.Add(e.Sender);
     }
 }
 public void OnDestinationReached(ActorPropertiesEventArgs e)
 {
     if (DestinationReached != null)
     {
         DestinationReached(this, e);
     }
 }
 protected void OnDestinationWasReached(ActorPropertiesEventArgs e)
 {
     if (DestinationWasReached != null)
     {
         DestinationWasReached(this, e);
     }
 }
Esempio n. 5
0
 protected void OnActorSpawned(ActorPropertiesEventArgs e)
 {
     if (ActorSpawned != null)
     {
         ActorSpawned(this, e);
     }
 }
 protected void OnEnemyDown(ActorPropertiesEventArgs e)
 {
     if (EnemyDown != null)
     {
         EnemyDown(this, e);
         //FCB.EventSystem.EventManager.Instance.Raise(new
         FCB.EventSystem.EventManager.Instance.Raise(new SpawnCorpseEvent(e.Sender, e.ActorProperties));
     }
 }
 void UpdateEnemiesLeft(object sender, ActorPropertiesEventArgs e)
 {
     EnemiesLeftText.text = "-1";
 }
 protected void DestinationReached(object sender, ActorPropertiesEventArgs e)
 {
     OnDestinationWasReached(e);
     gameObject.SetActive(false);
 }
Esempio n. 9
0
 void EnemySpawned(object sender, ActorPropertiesEventArgs e)
 {
     Debug.Log("LevelManager -> EnemySpawned()");
     _defaultEnemiesLeft--;
 }