示例#1
0
    void OnInitialize()
    {
        UIManager.Instance.CloseUI("TownHome");
        CameraController.Instance.MainCamera.gameObject.SetActive(false);

        _playerTattoos = PlayerInfo.Instance.playerTattoos;

        ResetWindows();

        PlayerPrefs.SetInt(PrefsKey.PreviousPlayerLevel, PlayerInfo.Instance.CurrentLevel);
    }
示例#2
0
    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));
            }
        }
    }
示例#3
0
    void Awake()
    {
        _playerTattoos = PlayerInfo.Instance.playerTattoos;

        _uiTattoo = transform.parent.GetComponent <UITattoo>();
    }