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>(); }
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 }
// Use this for initialization void Start() { //ref to the other object of waypoints //= GameObject.Find("Waypoints_object_keepName").GetComponent<WayPointManager>(); MWay_ptr = GameObject.Find("Empty_Waypoints").GetComponent <MNGR_Waypoints>(); }