Ejemplo n.º 1
0
 public void Activate(GameObject sender)
 {
     this.Activated = true;
     if (OnActivation != null)
     {
         OnActivation.Invoke(this.gameObject);
     }
 }
Ejemplo n.º 2
0
 public void Activate(GameObject sender)
 {
     this.Activated = true;
     //Debug.Log(gameObject.name + " : Activated");
     if (OnActivation != null)
     {
         OnActivation.Invoke(this.gameObject);
     }
 }
Ejemplo n.º 3
0
 public void Activate(GameObject sender)
 {
     AnimCheck.SetTrigger("CheckpointEnable");
     this.Activated = true;
     if (OnActivation != null)
     {
         OnActivation.Invoke(this.gameObject);
     }
 }
Ejemplo n.º 4
0
 public void TriggerEvent(GameObject activator)
 {
     OnActivation?.Invoke(activator);
 }
Ejemplo n.º 5
0
 public void SubscribeOnActivation(OnActivation onActivation)
 {
     _onActivation += onActivation;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Defines what should happen when the player interacts with the object. It is also what happens when the object is remotely activated, i.e. via a player detector.
 /// </summary>
 public virtual void OnPlayerAction(Tile tile, Player player)
 {
     OnActivation?.Invoke(tile, player);
 }