// 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);
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     hitboxManager        = gameObject.GetComponent <OffensiveHitboxManager> ();
     hitboxManager.OnHit += AnalyseHit;
     maxCombo             = lightAttacks.Length;
 }