Пример #1
0
    void Start()
    {
        motor = GetComponent <P_Motor>();

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

        //Cursor.lockState = CursorLockMode.Locked;
        Cursor.visible = false;
    }
Пример #2
0
 void Awake()
 {
     numOfJumps = baseNumOfJumps;
     Instance = this;
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     motor = GetComponent<P_Motor>();
     cc = GetComponent<CharacterController>();
 }
Пример #4
0
 void Awake()
 {
     S = this;
     rb = this.GetComponent<Rigidbody>();
     jumpPS = this.transform.GetChild(0).GetComponent<ParticleSystem>();
 }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     playerMotor = GetComponent<P_Motor> ();
 }