Ejemplo n.º 1
0
        private void Awake()
        {
            _warriorInputController = GetComponent <WarriorInputController>();
            _warriorParticleManager = GetComponent <WarriorParticleManager>();

            _warriorSkillManager = new WarriorSkillManager();
            _warriorStrongAttack = new WarriorStrongAttack(this);
            _warriorQuickAttack  = new WarriorQuickAttack(this);
            _warriorDefence      = new WarriorDefence(this);

            _warriorSkillManager.AddSkill(_warriorStrongAttack);
            _warriorSkillManager.AddSkill(_warriorQuickAttack);
            _warriorSkillManager.AddSkill(_warriorDefence);

            _warriorInputController.Initialize(_warriorSkillManager);

            _warriorInputController.OnPerformSkillPressed += PerformSkill;
        }
Ejemplo n.º 2
0
 public void Initialize(WarriorSkillManager warriorSkillManager)
 {
     _warriorSkillManager = warriorSkillManager;
 }