void RestoreState() { State = RobotSentinelStates.Walking; Scanner = null; }
void Scan() { State = RobotSentinelStates.Scanning; LastScan = Game1.CurrentTime; Scanner = new ScanningCircle(new Vector2(DrawBox.Center.X, DrawBox.Bottom), SCANNING_RANGE, SCANNING_SPEED); }
public void PlayerSpottedByScanner(object nothing) { if (Target != null) { if (Target.State == Player.PlayerStates.Standing || Target.State == Player.PlayerStates.Walking || Target.State == Player.PlayerStates.Shooting) { State = RobotSentinelStates.Attacking; Scanner = null; LastAttack = Game1.CurrentTime; } } }