void OnInitialize() { UIManager.Instance.CloseUI("TownHome"); CameraController.Instance.MainCamera.gameObject.SetActive(false); _playerTattoos = PlayerInfo.Instance.playerTattoos; ResetWindows(); PlayerPrefs.SetInt(PrefsKey.PreviousPlayerLevel, PlayerInfo.Instance.CurrentLevel); }
public override void Decode(BinaryReader reader) { InJoyDebugBase.DebugCommandResponse(this, ref reader); errorCode = reader.ReadInt16(); if (errorCode == 0) { //tattoos bunred on body playerTattoos = new PlayerTattoos(); playerTattoos.Parse(reader); //tattoo recipes mastered recipeList = new List <string>(); int count = reader.ReadInt16(); for (int i = 0; i < count; i++) { recipeList.Add(ReadString(reader)); } } }
void Awake() { _playerTattoos = PlayerInfo.Instance.playerTattoos; _uiTattoo = transform.parent.GetComponent <UITattoo>(); }