Skip to content

Replace instance field with read-only Instance property on singletons #4

Description

@ShiJbey

GameSession, PlayerProfile, GameWorld, StepManager, and FragmentManager are all singleton classes that need their instance fields replaced with read-only properties to prevent unintentional overwriting.

For example, in StepManager, we should do the following:

// Replace
public static StepManager instance = null;

// With
public static StepManager Instance { get; private set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions