Exemplo n.º 1
0
 protected override void Start()
 {
     base.Start();
     meleeAnimator = GetComponent <MeleeAnimator>();
     bladeRay[0]   = transform.GetChild(0).GetChild(0).GetChild(0).GetChild(0).Find("BladeRay.A");
     bladeRay[1]   = transform.GetChild(0).GetChild(0).GetChild(0).GetChild(0).Find("BladeRay.B");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Plays all the visual overhead of equipping (animation, sounds)
 /// </summary>
 public override void Equip()
 {
     if (meleeAnimator == null)
     {
         meleeAnimator = GetComponent <MeleeAnimator>();
     }
     meleeAnimator.SetAnimationId();
     meleeAnimator.PlayEquipAnimation();
     SoundSystem.PlaySound2D(equipSound.name);
 }
Exemplo n.º 3
0
 void Start()
 {
     this.InitCharacter();
     meleeAnimator = GetComponentInChildren <MeleeAnimator> ();
 }