示例#1
0
文件: cTest.cs 项目: junezzhu/cs426
 // Use this for initialization
 void Start()
 {
     distance = 0;
     timer = 0;
     gameMan = GameObject.Find("gameManager");
     localFM = (gameFM)gameMan.GetComponent (typeof(gameFM));
 }
示例#2
0
    void Start()
    {
        sphere = gameObject.AddComponent<SphereCollider> ();
        sphere.radius = 1;
        sphere.isTrigger = true;

        //gameMan = GameObject.Find("gameManager");
        localFM = (gameFM)gameMan.GetComponent (typeof(gameFM));

        iteration = null;
        thirdState = 0; // doing nothing /init
        index = -1; //initialization
        resume = false;
    }