public void Start() { PlayerBehaviour player = GameObject.Find(targetName).GetComponent <PlayerBehaviour>(); Skill = player.GetPropValue <CooldownSkill>(skillName); Skill.OnExecute += TransitionToCooldownStart; _Animator = GetComponent <Animator>(); SceneLinkedSMB <CooldownSkillUI> .Initialise(_Animator, this); UpdateUI(); }
public DashSkill(PlayerBehaviour player) : base(3, 3, 3) { this.player = player; }