void Start() { cubeCreator = GameObject.FindGameObjectWithTag("CubeCreator").GetComponent <createCube>(); centerPos = new GameObject[3]; centerDetecters = new GameObject[3]; cubeCreator.centerDeciderCreated = true; }
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(); }
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(); }
void Start () { createC = Camera.main.GetComponent<createCube> (); }