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 #2
0
    void Start()
    {
        _myTransform = transform;

        MWay     = GameObject.Find("Empty_Waypoints").GetComponent <MNGR_Waypoints>();
        HB_trans = transform.Find("HealthBarCube");
        MGame    = GameObject.Find("Empty_GameManager").GetComponent <MNGR_Game>();
        MMob     = GameObject.Find("Empty_MobManager").GetComponent <MNGR_Mob>();
        Mtower   = GameObject.Find("Empty_TowerManager").GetComponent <MNGR_Tower>();
        //MOB_ID=_myTransform.GetComponent<mobs
    }