Exemplo n.º 1
0
 void Start()
 {
     audio            = gameObject.GetComponent <AudioSource>();
     laught           = GameObject.Find("Laught").GetComponent <AudioSource>();
     gostSwamps       = GameObject.Find("Swamp").GetComponent <SwampScript>();
     swampsController = GameObject.Find("Controller").GetComponent <SwampController>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player     = GameObject.FindGameObjectWithTag("Player").transform;
     controller = GameObject.Find("Controller").GetComponent <SwampController>();
 }