public void Activate(GameObject sender) { this.Activated = true; if (OnActivation != null) { OnActivation.Invoke(this.gameObject); } }
public void Activate(GameObject sender) { this.Activated = true; //Debug.Log(gameObject.name + " : Activated"); if (OnActivation != null) { OnActivation.Invoke(this.gameObject); } }
public void Activate(GameObject sender) { AnimCheck.SetTrigger("CheckpointEnable"); this.Activated = true; if (OnActivation != null) { OnActivation.Invoke(this.gameObject); } }
public void TriggerEvent(GameObject activator) { OnActivation?.Invoke(activator); }
public void SubscribeOnActivation(OnActivation onActivation) { _onActivation += onActivation; }
/// <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); }