Beispiel #1
0
 void Start()
 {
     player              = this.GetComponent <Rigidbody>();
     animationHandler    = this.GetComponent <AnimationStateHandler>();
     powerUpStateHandler = this.GetComponent <PowerUpStateHandler>();
     doubleJumpAvailable = false;
     airDrag             = new Vector3(12f, 0f, 0f);
 }
Beispiel #2
0
 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);
 }