public override void Start() { base.Start(); this.playerMechanic = GameObject.FindGameObjectWithTag(Tags.PLAYER).GetComponent<PlayerMechanic>(); SetAnimations(coinAnimation, catchAnimation, null, null, null); }
public override void Start() { base.Start(); isPrepared = true; currentCoolDown = coolDown; SetAnimations(able, disable, null, null, null); player = GameObject.FindGameObjectWithTag("Player"); playerMechanic = player.GetComponent<PlayerMechanic>(); }
public void Start() { this.playerMechanic = playerGo.GetComponent<PlayerMechanic>(); }
public void Awake() { this.playerGo = GameObject.FindGameObjectWithTag (Tags.PLAYER); this.playerMechanic = playerGo.GetComponent<PlayerMechanic> (); }