Example #1
0
 void Start()
 {
     cubeCreator     = GameObject.FindGameObjectWithTag("CubeCreator").GetComponent <createCube>();
     centerPos       = new GameObject[3];
     centerDetecters = new GameObject[3];
     cubeCreator.centerDeciderCreated = true;
 }
Example #2
0
    void Start()
    {
        Rooms      = GameObject.FindGameObjectWithTag("RoomsHolder");
        createCube = GameObject.FindGameObjectWithTag("CubeCreator").GetComponent <createCube>();

        speed    = createCube.speed;
        thisSize = GetComponent <BoxCollider>().size;
        size     = createCube.size;
        size     = (size * size);
        cubeLine = new List <GameObject>();

        rotType = FindRotType();
    }
Example #3
0
	void Start() {
		destroyC = GameObject.Find ("Cube Destroyer").GetComponent<destroyCube> ();
		createC = this.GetComponent<createCube> ();
		endG = GameObject.Find ("Sphere Player").GetComponent<endGame> ();
		highScore.text = "High Score: " + PlayerPrefs.GetInt ("HighScore").ToString();
	}
Example #4
0
	void Start () {
		createC = Camera.main.GetComponent<createCube> ();
	}