Exemplo n.º 1
0
    public SequenceBtnCreatorHelper(ISequenceBtnCreator sequence)
    {
        this.sequence = sequence;
        string json = PlayerPrefs.GetString(ConstString.JsonData, null);

        if (json == null)
        {
            throw new NullReferenceException("Missing json file");
        }
        this.rootObject = JsonUtility.FromJson <RootObject>(json);
    }
Exemplo n.º 2
0
 public void Dispose()
 {
     this.sequence   = null;
     this.rootObject = null;
 }