예제 #1
0
 void Start()
 {
     energySystem = this.GetComponent <EnergySystem>();
     actions      = this.GetComponent <PlayerActions>();
     animations   = this.GetComponent <PlayerAnimations>();
     spells       = this.GetComponent <PlayerSpells>();
     spellsSystem = this.GetComponent <SpellsSystem>();
 }
예제 #2
0
파일: Player.cs 프로젝트: zhaocg/Scripts
    void Start()
    {
        energySystem = this.GetComponent <EnergySystem>();
        actions      = this.GetComponent <PlayerActions>();
        animations   = this.GetComponent <PlayerAnimations>();
        spells       = this.GetComponent <PlayerSpells>();
        spellsSystem = this.GetComponent <SpellsSystem>();

        //InitializeSkill();
        //InitSpellsSystem();
        //spells.SetSpells(HandType.Left, spellsSystem.spellsList[0]);
        //spells.SetSpells(HandType.Right, spellsSystem.spellsList[1]);
    }
예제 #3
0
 void Awake()
 {
     instance = this;
 }