Ejemplo n.º 1
0
    /*******************************/

    protected override void Awake()
    {
        base.Awake();
        shareAI         = this;
        _ballPath       = new List <Vector3>();
        _shootDirection = Direction.Both;
    }
Ejemplo n.º 2
0
    public void Update(Identity identity, AiComponent aicompont, InputComponent input)
    {
        if (aicompont == null || aicompont.enable == false)
        {
            return;
        }

        if (identity.isAIControl == true)
        {
            if (identity.tag == "tank")
            {
                MoveAI.moveAI(aicompont, input);
            }
            else if (identity.tag == "gun")
            {
                ShootAI.shootAI(aicompont, input);
            }
        }
    }