// Use this for initialization void Start() { controle = GameObject.Find("SpawnControl").GetComponent <ObjController>(); player1 = GameObject.Find("Player1").GetComponent <PlayerState> (); player2 = GameObject.Find("Player2").GetComponent <PlayerState> (); player2T = GameObject.Find("Player2").GetComponent <Transform> (); }
// Use this for initialization void Start() { controle = GameObject.Find("SpawnControl").GetComponent <ObjController>(); //player1 = GameObject.Find ("Player1").GetComponent<PlayerState> (); player2 = GameObject.Find("Player2").GetComponent <PlayerState> (); player2T = GameObject.Find("Player2").GetComponent <Transform> (); wall1 [0] = GameObject.Find("Wall3").GetComponent <Renderer>(); wall1 [1] = GameObject.Find("Wall4").GetComponent <Renderer>(); wall2 [0] = GameObject.Find("Wall3.2").GetComponent <Renderer>(); wall2 [1] = GameObject.Find("Wall4.2").GetComponent <Renderer>(); //luz = GameObject.Find ("Directional Light").GetComponent<Light> (); }
void Start() { rg = GetComponent <Rigidbody>(); objC = GameObject.Find("ObjController").GetComponent <ObjController>(); rg.AddForce(-transform.forward * flySpeed); }
void Start() { objController = Player.GetComponent <ObjController>(); }