예제 #1
0
    public override void SetComponents(string[] components)
    {
        m_ComponentsObject = transform.FindChild (Constants.COMPONENTS_STRING).gameObject;

        m_CombatComponent = m_ComponentsObject.GetComponent (components [0]) as BaseCombat;
        m_TargetingComponent = m_ComponentsObject.GetComponent (components [1]) as BaseTargeting;
        m_MovementComponent = m_ComponentsObject.GetComponent (components [2]) as BaseMovement;
    }