// Use this for initialization void Start() { m_InitialPosition = gameObject.transform.position; m_WorldControler = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>(); m_CurrentWorldNumber = m_WorldControler.getCurrentWorldNumber(); m_RelPosition.Set(0, 0, 0); m_Translations = new Vector3[3]; m_Translations[0].Set(m_Speed, 0, 0); m_Translations[1].Set(0, m_Speed, 0); m_Translations[2].Set(0, 0, m_Speed); m_BumpersRenderer = new Renderer[2]; m_BumpersRenderer[0] = gameObject.transform.FindChild("bumperLeft").GetComponent<Renderer>(); m_BumpersRenderer[1] = gameObject.transform.FindChild("bumperRight").GetComponent<Renderer>(); }
// Use this for initialization void Start() { m_InitialPosition = gameObject.transform.position; m_WorldControler = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>(); m_CurrentWorldNumber = m_WorldControler.getCurrentWorldNumber(); m_RelPosition.Set(0, 0, 0); m_Translations = new Vector3[3]; m_Translations[0].Set(m_Speed, 0, 0); m_Translations[1].Set(0, m_Speed, 0); m_Translations[2].Set(0, 0, m_Speed); m_BumpersRenderer = new Renderer[2]; m_BumpersRenderer[0] = gameObject.transform.FindChild("bumperLeft").GetComponent <Renderer>(); m_BumpersRenderer[1] = gameObject.transform.FindChild("bumperRight").GetComponent <Renderer>(); }
void Start() { m_Incl = 0.0f; m_Rot_Y = 0.0f; m_Lastpos = Input.mousePosition; m_JumpHandler = GetComponentInChildren <JumperScript>(); GameObject world = GameObject.Find("GameWorld"); m_WorldHandler = world.GetComponent <WorldControlerScript>(); Screen.showCursor = false; m_RespawnPosition = transform.position; m_RespawnRotation = transform.rotation; m_InitialVelocity.Set(0, 0, 0); }
void Start() { m_Incl = 0.0f; m_Rot_Y = 0.0f; m_Lastpos = Input.mousePosition; m_JumpHandler = GetComponentInChildren<JumperScript>(); GameObject world = GameObject.Find("GameWorld"); m_WorldHandler = world.GetComponent<WorldControlerScript>(); Screen.showCursor = false; m_RespawnPosition = transform.position; m_RespawnRotation = transform.rotation; m_InitialVelocity.Set(0, 0, 0); }
// Use this for initialization void Start() { wc = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>(); mr = gameObject.GetComponent <MeshRenderer>(); }
// Use this for initialization void Start() { m_Wc = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>(); m_Tm = gameObject.GetComponent <TextMesh>(); }
// Use this for initialization void Start() { wc = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>(); mr = gameObject.GetComponent<MeshRenderer>(); }
// Use this for initialization void Start() { m_LaserBeams = GameObject.FindGameObjectsWithTag("laserBeam"); m_worldController = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>(); m_CurrentWorld = m_worldController.getCurrentWorld(); }
// Use this for initialization void Start() { m_Wc = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>(); m_Tm = gameObject.GetComponent<TextMesh>(); }
// Use this for initialization void Start() { m_LaserBeams = GameObject.FindGameObjectsWithTag("laserBeam"); m_worldController = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>(); m_CurrentWorld = m_worldController.getCurrentWorld(); }