示例#1
0
 // Use this for initialization
 void Start()
 {
     pc = GameObject.Find("Snake").GetComponent <CharController>();
     mm = GetComponent <MenuManager>();
     ui = GetComponent <DebugUIManager>();
     rm = GetComponent <RoomManager>();
     StartCoroutine(GameScript());
 }
    void Start()
    {
        activeItems = 0;
        cpuUsage    = gameObject.GetComponent <DebugUIManager>();

        camOrtho  = Camera.main.orthographicSize;
        camXstart = Camera.main.transform.position.x;
        camYstart = Camera.main.transform.position.y;
        camZstart = Camera.main.transform.position.z;
        lines     = new Queue <LineDrawer>();

        Meteors          = GameObject.FindGameObjectsWithTag("Meteor");
        AstronautsWhite  = GameObject.FindGameObjectsWithTag("Astronaut_white");
        AstronautsOrange = GameObject.FindGameObjectsWithTag("Astronaut_orange");
    }