public override void Initialize() { base.Initialize(); spellName = WindArrow.WIND_ARROW; windAbility = player.GetComponent <WindAbility>(); playerAnim.SetSpell(this, SkillType.WindIce); }
public override void Initialize() { base.Initialize(); spellName = Hurricane.HURRICANE; windAbility = player.GetComponent <WindAbility>(); playerAnim.SetSpell(this, SkillType.Hurricane); }
private void Awake() { fireAbility = GetComponent <FireAbility>(); thunderAbility = GetComponent <ThunderAbility>(); iceAbility = GetComponent <IceAbility>(); windAbility = GetComponent <WindAbility>(); debugInfoUI = GameObject.Find("PlayerAbilityDebugInfo").GetComponent <Text>(); if (debugInfoUI == null) { Debug.LogError("没找到PlayerAbilityDebugInfo这个ui物体"); } elementSwitch = GameObject.Find("ElementSwitch").GetComponent <ElementSwitch>(); if (elementSwitch == null) { Debug.LogError("没找到elementSwitch这个ui物体"); } }