// Start is called before the first frame update void Start() { if (PlayerPrefs.HasKey("moveOption")) { EMovementOptions playerOption = (EMovementOptions)PlayerPrefs.GetInt("moveOption"); if (moveOption == playerOption) { SelectOption(); } } else { EMovementOptions playerOption = EMovementOptions.TAP; if (moveOption == playerOption) { SelectOption(); PlayerPrefs.SetInt("moveOption", (int)moveOption); } } }
public void SetMoveOptions(EMovementOptions option) { moveOption = option; }