Esempio n. 1
0
    void Start()
    {
        motor = GetComponent <P_Motor>();

        if (musicSource != null)
        {
            musicSource.clip = musicClip;
            musicSource.Play();
        }

        //Cursor.lockState = CursorLockMode.Locked;
        Cursor.visible = false;
    }
Esempio n. 2
0
 void Awake()
 {
     numOfJumps = baseNumOfJumps;
     Instance = this;
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     motor = GetComponent<P_Motor>();
     cc = GetComponent<CharacterController>();
 }
Esempio n. 4
0
 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> ();
 }