Exemplo n.º 1
0
 // 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>();
 }
Exemplo n.º 2
0
 // 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>();
 }
Exemplo n.º 3
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);
    }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     wc = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>();
     mr = gameObject.GetComponent <MeshRenderer>();
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     m_Wc = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>();
     m_Tm = gameObject.GetComponent <TextMesh>();
 }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     wc = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>();
     mr = gameObject.GetComponent<MeshRenderer>();
 }
Exemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     m_LaserBeams = GameObject.FindGameObjectsWithTag("laserBeam");
     m_worldController = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>();
     m_CurrentWorld = m_worldController.getCurrentWorld();
 }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     m_Wc = GameObject.Find("GameWorld").GetComponent<WorldControlerScript>();
     m_Tm = gameObject.GetComponent<TextMesh>();
 }
Exemplo n.º 10
0
 // Use this for initialization
 void Start()
 {
     m_LaserBeams      = GameObject.FindGameObjectsWithTag("laserBeam");
     m_worldController = GameObject.Find("GameWorld").GetComponent <WorldControlerScript>();
     m_CurrentWorld    = m_worldController.getCurrentWorld();
 }