Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void Dash()
 {
     DashSkill.Execute();
     VikingCrewTools.UI.SpeechBubbleManager.Instance.AddSpeechBubble
         (transform, Speech.GetSpeech(EnumAction.PLAYER_DASH, EnumLevel.ANY));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Check for dash input
 /// </summary>
 public bool CheckForDashInput()
 {
     return(cInput.GetButtonDown(dashButton) && DashSkill.CanUse());
 }