Esempio n. 1
0
 public override void Initialize()
 {
     base.Initialize();
     spellName   = WindArrow.WIND_ARROW;
     windAbility = player.GetComponent <WindAbility>();
     playerAnim.SetSpell(this, SkillType.WindIce);
 }
Esempio n. 2
0
 public override void Initialize()
 {
     base.Initialize();
     spellName   = Hurricane.HURRICANE;
     windAbility = player.GetComponent <WindAbility>();
     playerAnim.SetSpell(this, SkillType.Hurricane);
 }
Esempio n. 3
0
    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物体");
        }
    }