Example #1
0
    void Start()
    {
        Mgrid = GameObject.Find("Empty_Grid").GetComponent <MNGR_Grid>();
        MWay  = GameObject.Find("Empty_Waypoints").GetComponent <MNGR_Waypoints>();

        Mgame = GameObject.Find("Empty_GameManager").GetComponent <MNGR_Game>();
        //transform.position=Mgrid.Grid_end_ptr.position;
    }
    void Start()
    {
        //ref to the other object of waypoints
        //wm= GameObject.Find("Waypoints_object_keepName").GetComponent<WayPointManager>();

        Mgrid      = GameObject.Find("Empty_Grid").GetComponent <MNGR_Grid>();
        Mwaypoints = GameObject.Find("Empty_Waypoints").GetComponent <MNGR_Waypoints>();
        Mgame      = GameObject.Find("Empty_GameManager").GetComponent <MNGR_Game>();
        MMob       = GameObject.Find("Empty_MobManager").GetComponent <MNGR_Mob>();
        Mtower     = GameObject.Find("Empty_TowerManager").GetComponent <MNGR_Tower>();
    }
Example #3
0
    void Start()
    {
        downPos   = new Vector3(transform.position.x, transform.position.y, transform.position.z);
        upPos     = new Vector3(transform.position.x, transform.position.y + 1, transform.position.z);
        currpos   = downPos;
        loclaStat = State.DownState;
        Mgame     = GameObject.Find("Empty_GameManager").GetComponent <MNGR_Game>();
        Mgrid     = GameObject.Find("Empty_Grid").GetComponent <MNGR_Grid>();

        Mtower = GameObject.Find("Empty_TowerManager").GetComponent <MNGR_Tower>();
        //  PM= transform
    }
Example #4
0
 void Start()
 {
     MGrid = GameObject.Find("Empty_Grid").GetComponent <MNGR_Grid>();
 }