void Start() { player = this.GetComponent <Rigidbody>(); animationHandler = this.GetComponent <AnimationStateHandler>(); powerUpStateHandler = this.GetComponent <PowerUpStateHandler>(); doubleJumpAvailable = false; airDrag = new Vector3(12f, 0f, 0f); }
// Use this for initialization void Start() { powerUpStateHandler = GameObject.Find("Player").GetComponent <PowerUpStateHandler>(); itemCollected = false; }
void Start() { player = this.GetComponent<Rigidbody>(); animationHandler = this.GetComponent<AnimationStateHandler>(); powerUpStateHandler = this.GetComponent<PowerUpStateHandler>(); doubleJumpAvailable = false; airDrag = new Vector3(12f, 0f, 0f); }