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