public static void UpdateInstancePosition(EasterEventController attemptedConstruct) { if (attemptedConstruct == null) { return; } if (Instance == null) // should never happen, but if it does, make this the instance { Instance = attemptedConstruct; } else if (attemptedConstruct.Location != Point3D.Zero) // move the instance to it's location and delete it { Instance.Location = attemptedConstruct.Location; attemptedConstruct.Destroy(); } }
public static void UpdateInstancePosition(EasterEventController attemptedConstruct) { if (attemptedConstruct == null) { return; } if (Instance == null) // should never happen, but if it does, make this the instance { Instance = attemptedConstruct; } else if (attemptedConstruct.Location != Point3D.Zero) // move the instance to it's location and delete it { Instance.Location = attemptedConstruct.Location; attemptedConstruct.Destroy(); } }