public void AddEntity(GameEntity e) { e.Manager = this; entities.Add(e); e.OnInitialize(this); }
public void RotateTo(GameEntity target) { Rotation.Set(FloatMath.PositiveAtan2(target.Position.Y - Center.Y, target.Position.X - Center.X)); //Screen.PushNotification($"Cannon :: target({FloatMath.ToDegree(Rotation.TargetValue):000}°)"); }