Example #1
0
 // Use this for initialization
 new void Start()
 {
     base.Start();
     player        = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerScript>();
     playerSonar   = GameObject.FindGameObjectWithTag("Player").GetComponent <SonarPingScript>();
     arrowEndLevel = GameObject.Find("arrow");
     arrowEndLevel.SetActive(false);
 }
Example #2
0
 // Use this for initialization
 new void Start()
 {
     base.Start();
     playerSonar = GameObject.FindGameObjectWithTag("Player").GetComponent <SonarPingScript>();
 }