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_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_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; } }
/* * private List<Transform> m_EnemyRangeList = new List<Transform>(); * public List<Transform> GetEnemyList() * { * return m_EnemyRangeList; * } * * public void DeletEneyList(int index) * { * m_EnemyRangeList.RemoveAt(index); * } * * private List<Transform> m_UserRangeList = new List<Transform>(); * public List<Transform> GetUserList() * { * return m_UserRangeList; * } * public void DeletUserList(int index) * { * m_UserRangeList.RemoveAt(index); * } */ void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); m_unitObject = transform.parent.gameObject; if (m_unitObject == null) { return; } m_unitType = m_unitObject.transform.GetComponent <Creature_p>(); if (m_unitObject == null) { return; } //c_controllerList.GetEventController().OnCollisionEvent += RangeCollisionEventCheck; }
void Start() { c_controllerList = GameObject.Find("GameControllerManager").GetComponent <c_ControllerList>(); if (c_controllerList == null) { return; } m_unitObject = transform.parent.gameObject; if (m_unitObject == null) { return; } m_unitType = m_unitObject.transform.GetComponent <Creature_p>(); if (m_unitType == 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; } }