Example #1
0
    public void shootBallDirectly(FBActor actor, ShootType type)
    {
        var direction = (actor.getEnemyDoorPosition() - actor.getPosition()).normalized;

        FixVector2 doorPosition  = FixVector2.kZero;
        FixVector2 destDirection = FixVector2.kZero;

        positiveDoorSide = getDoorSide(actor, direction, out destDirection);
        actor.shootBallDirectly(type, direction);
    }