public void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); if (c_controllerList == null) { return; } m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_scvObject = transform.gameObject; if (m_scvObject == null) { return; } m_scvType = m_scvObject.transform.GetComponent <Creature_p>(); if (m_scvType == null) { return; } }
public void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); if (c_controllerList == null) { return; } m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_unitObject = transform.gameObject; if (m_unitObject == null) { return; } m_unitType = m_unitObject.transform.GetComponent <Creature_p>(); if (m_unitType == null) { return; } sightCollsion = m_unitObject.transform.FindChild("0_Sight").GetComponent <Sight_Collider_Check>(); if (sightCollsion == null) { return; } }
public void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); if (c_controllerList == null) { return; } m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_heroUnitObject = transform.gameObject; if (m_heroUnitObject == null) { return; } m_heroUnitType = m_heroUnitObject.transform.GetComponent <Creature_p>(); if (m_heroUnitType == null) { return; } m_mapcreater = FindObjectOfType(typeof(MapCreater)) as MapCreater; if (m_mapcreater == null) { return; } }
// Use this for initialization void Start() { mineralScore = GetComponent <Text>(); m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } }
// Use this for initialization void Start() { m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } mapTileCreate(); mapObjectCreate("Enemy_Map", 0); mapObjectCreate("User_Map", 1); MineralCreate(); }
void Start() { m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_mapcreater = FindObjectOfType(typeof(MapCreater)) as MapCreater; if (m_mapcreater == null) { return; } //Destroy(m_ObjectList.m_mapGameObject.GetHeroMapTile(), 30); m_mapcreater.SetIsHeroMakeCheck(false); }
void Start() { m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_mapcreater = FindObjectOfType(typeof(MapCreater)) as MapCreater; if (m_mapcreater == null) { return; } m_unitPrice = gameObject.AddComponent <Creature_p>(); if (m_unitPrice == null) { return; } }
void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); if (c_controllerList == null) { return; } m_objectList = GameObject.Find("GameObjectManger").GetComponent <m_ObjectList>(); if (m_objectList == null) { return; } m_unitType = FindObjectOfType(typeof(Creature_p)) as Creature_p; if (m_unitType == null) { return; } }