Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     animations             = gameObject.GetComponent <Animations> ();
     offensiveHitboxManager = gameObject.GetComponent <OffensiveHitboxManager> ();
     defensiveHitboxManager = gameObject.GetComponent <HurtboxManager> ();
     inputHandler           = gameObject.GetComponent <InputHandler> ();
     charState = new StandingState(this);
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     hitboxManager        = gameObject.GetComponent <OffensiveHitboxManager> ();
     hitboxManager.OnHit += AnalyseHit;
     maxCombo             = lightAttacks.Length;
 }