Example #1
0
 // Use this for initialization
 void Start()
 {
     sac1        = GameObject.FindGameObjectWithTag("Player1").GetComponent <SelectAnotherCharacter>();
     sac2        = GameObject.FindGameObjectWithTag("Player2").GetComponent <SelectAnotherCharacter>();
     canRestart  = false;
     audioSource = GetComponent <AudioSource>();
     audioSource.PlayOneShot(Theme);
     audioSource.PlayOneShot(storm);
     Time.timeScale = 1;
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     mp  = this.GetComponent <MovementPlayer>();
     sac = this.GetComponent <SelectAnotherCharacter>();
     hm  = GameObject.FindGameObjectWithTag("GameManager").GetComponent <HitManager>();
 }