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"); }
/// <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); }
void Start() { this.InitCharacter(); meleeAnimator = GetComponentInChildren <MeleeAnimator> (); }