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