void OnRecordPersistentData() { TargetVein = GetComponent <ItemVein>(); VariableName = name + LevelName + transform.position.x.ToString("F2") + transform.position.ToString("F2"); DialogueLua.SetVariable(VariableName + "TriesToday", TargetVein.TriesToday); }
void Start() // Start is called before the first frame updatepublic override void Start() { LevelName = GameManager.Instance.LevelName; TargetVein = GetComponent <ItemVein>(); }