Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     p    = transform.gameObject.GetComponent <pickItems>();
     e    = transform.gameObject.GetComponent <ElementControl>();
     well = wellwater.GetComponent <WaterProperties>();
     w1   = lake1.GetComponent <WaterProperties>();
     w2   = lake2.GetComponent <WaterProperties>();
     L    = GameObject.FindGameObjectWithTag("fire base1").transform.gameObject.GetComponent <DoorTorchLight>();
     L2   = firebase2.GetComponent <DoorTorchLight>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     p = GameObject.FindGameObjectWithTag("Player").transform.gameObject.GetComponent <pickItems>();
 }