예제 #1
0
    public bool CanKill(RobotInputController robot)
    {
        PlayerAnimationController animator = robot.GetComponent <PlayerAnimationController>();

        if (animator.State == PlayerState.Trap)
        {
            if (animator.ITrapLevel == TrapLevel.Trap3)
            {
                if (containsFd(robot.fd))
                {
                    return(false);
                }
                return(true);
            }
        }
        return(false);
    }
예제 #2
0
    public void DispatchRobotState(ReceiveStateData data)
    {
        RobotInputController robot = GameGlobalData.robotList[data.fd];

        robot.ReceiveState(data);
    }
예제 #3
0
    public void DispatchRobotAction(ReceiveActionData data)
    {
        RobotInputController robot = GameGlobalData.robotList[data.fd];

        robot.ReceiveAction(data);
    }
예제 #4
0
    public void DispatchRobotTransform(ReceiveTransformData data)
    {
        RobotInputController robot = GameGlobalData.robotList[data.fd];

        robot.ReceiveTransform(data);
    }
예제 #5
0
 public void KillOne(RobotInputController robot)
 {
     behaviorCollector.SendKillOneAction(robot.fd);
 }