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