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); }
public void DispatchRobotState(ReceiveStateData data) { RobotInputController robot = GameGlobalData.robotList[data.fd]; robot.ReceiveState(data); }
public void DispatchRobotAction(ReceiveActionData data) { RobotInputController robot = GameGlobalData.robotList[data.fd]; robot.ReceiveAction(data); }
public void DispatchRobotTransform(ReceiveTransformData data) { RobotInputController robot = GameGlobalData.robotList[data.fd]; robot.ReceiveTransform(data); }
public void KillOne(RobotInputController robot) { behaviorCollector.SendKillOneAction(robot.fd); }