void Start() { motor = GetComponent <P_Motor>(); if (musicSource != null) { musicSource.clip = musicClip; musicSource.Play(); } //Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }
void Awake() { numOfJumps = baseNumOfJumps; Instance = this; }
// Use this for initialization void Start() { motor = GetComponent<P_Motor>(); cc = GetComponent<CharacterController>(); }
void Awake() { S = this; rb = this.GetComponent<Rigidbody>(); jumpPS = this.transform.GetChild(0).GetComponent<ParticleSystem>(); }
// Use this for initialization void Start() { playerMotor = GetComponent<P_Motor> (); }