Exemplo n.º 1
0
    void LookForCommandBubble()
    {
        CommandBubbleController cbc = (CommandBubbleController)commandBubble.GetComponent("CommandBubbleController");

        bool isInsideBubble = IsInsideCommandBubble();

        if (cbc.isActive && isInsideBubble)
        {
            state = AiState.ATTACK;
        }
        else if (cbc.isActive && !isInsideBubble)
        {
            state = AiState.MOVE;
        }
        else
        {
            state = AiState.STANDBY;
        }
    }
Exemplo n.º 2
0
    void CreateCommandBubble(Vector3 location)
    {
        CommandBubbleController cbc = (CommandBubbleController)commandBubble.gameObject.GetComponent("CommandBubbleController");

        cbc.Enable(location);
    }