void Start() { player = this.GetComponent <Rigidbody>(); animationHandler = this.GetComponent <AnimationStateHandler>(); powerUpStateHandler = this.GetComponent <PowerUpStateHandler>(); doubleJumpAvailable = false; airDrag = new Vector3(12f, 0f, 0f); }
internal void AddAnimationStateObserver(IAnimationStateObserver obs) { m_AnimationStateEvent += new AnimationStateHandler(obs.AnimationStateChanged); }
void Start() { player = this.GetComponent<Rigidbody>(); animationHandler = this.GetComponent<AnimationStateHandler>(); powerUpStateHandler = this.GetComponent<PowerUpStateHandler>(); doubleJumpAvailable = false; airDrag = new Vector3(12f, 0f, 0f); }