public void SetLockName(LocksName name) { lockName = name; //StopAllCoroutines(); //StartCoroutine(Init()); Init(); }
public LockInfo(LocksName myName, int levelRequierd, string scene, string myDiscription, int myCost = -1) { name = myName; levelRequierd2Unlock = levelRequierd; sceneName = scene; discription = myDiscription; if (myCost == -1) { cost = levelRequierd * 1000; } else { cost = myCost; } }