示例#1
0
    public void LookAtSelectedTarget(bool a_bAttack, Transform a_tTarget = null)
    {
        if (a_tTarget == null)
        {
            Debug.Log("<color=green>[RaycastManager] The target transform is empty</color>");
            m_refLookAt.NoTarget();
            return;
        }

        m_refLookAt.Target = a_tTarget;

        Debug.Log("<color=green>[RaycastManager] Target accepted, looking at selected target</color>");
        if (a_bAttack)
        {
            Debug.Log("<color=green>[RaycastManager] Attack enabled, Fireball</color>");
            DragonRangeAttack(111);
        }
    }