コード例 #1
0
 void Start()
 {
     groundPos       = transform.position;
     groundHeight    = transform.position.y;
     maxJumpHeight   = transform.position.y + maxJumpHeight;
     defaultSpeed    = bgScript.GetSpeed();
     curMovingUpTime = movingUpTime;
 }
コード例 #2
0
 void Start()
 {
     groundPos       = transform.position;
     groundHeight    = transform.position.y;
     maxJumpHeight   = transform.position.y + maxJumpHeight;
     defaultSpeed    = bgScript.GetSpeed();
     curMovingUpTime = movingUpTime;
     jump            = GetComponent <AudioSource>();
 }