public void SetDirection() { if (newx >= LevelGenerator.CurrentLevel.MarioObject.x) { Direction = PiranahDirection.PD_Left; } else { Direction = PiranahDirection.PD_Right; } SetPiranahProperties(); }
public void SetDirection() { if (newx >= LevelGenerator.CurrentLevel.MarioObject.x) Direction = PiranahDirection.PD_Left; else Direction = PiranahDirection.PD_Right; SetPiranahProperties(); }