void Start() { _DustEffectPool = GetComponent <DustEffectPool>(); Body = GetComponent <Rigidbody>(); _GroundChecker = transform.GetChild(0); _Camera = Camera.main; _Animator = GetComponent <Animator>(); Damageable = GetComponent <Damageable>(); DashSkill = new DashSkill(this); _itemHandler = GetComponent <ItemHandler>(); SceneLinkedSMB <PlayerBehaviour> .Initialise(_Animator, this); }
public void Dash() { DashSkill.Execute(); VikingCrewTools.UI.SpeechBubbleManager.Instance.AddSpeechBubble (transform, Speech.GetSpeech(EnumAction.PLAYER_DASH, EnumLevel.ANY)); }
/// <summary> /// Check for dash input /// </summary> public bool CheckForDashInput() { return(cInput.GetButtonDown(dashButton) && DashSkill.CanUse()); }