public void OnActorClicked(ActorPropertiesEventArgs e)
 {
     if (ActorClicked != null)
     {
         ActorClicked(this, e);
     }
 }
Exemplo 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);
     }
 }
Exemplo n.º 4
0
 protected void OnDestinationWasReached(ActorPropertiesEventArgs e)
 {
     if (DestinationWasReached != null)
     {
         DestinationWasReached(this, e);
     }
 }
Exemplo n.º 5
0
 protected void OnActorSpawned(ActorPropertiesEventArgs e)
 {
     if (ActorSpawned != null)
     {
         ActorSpawned(this, e);
     }
 }
Exemplo n.º 6
0
 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));
     }
 }
Exemplo n.º 7
0
 void UpdateEnemiesLeft(object sender, ActorPropertiesEventArgs e)
 {
     EnemiesLeftText.text = "-1";
 }
Exemplo n.º 8
0
 protected void DestinationReached(object sender, ActorPropertiesEventArgs e)
 {
     OnDestinationWasReached(e);
     gameObject.SetActive(false);
 }
Exemplo n.º 9
0
 void EnemySpawned(object sender, ActorPropertiesEventArgs e)
 {
     Debug.Log("LevelManager -> EnemySpawned()");
     _defaultEnemiesLeft--;
 }