Пример #1
0
 // Use this for initialization
 void Start()
 {
     rigidBody         = GetComponent <Rigidbody2D> ();
     playerAnimation   = GetComponent <Animator> ();
     respawnPoint      = transform.position;
     gameLevelManager  = FindObjectOfType <LevelManager_L1S2> ();
     MusicSource.clip  = MusicClip;
     MusicSource2.clip = MusicClip2;
     MusicSource3.clip = MusicClip3;
     MusicSource4.clip = MusicClip4;
 }
Пример #2
0
 void Start()
 {
     gameLevelManager = FindObjectOfType <LevelManager_L1S2> ();
 }