Пример #1
0
	void Awake()
	{
		DontDestroyOnLoad(gameObject);
		RenameToType();
		myInstance = this;
		
		Hide();
	}
Пример #2
0
	void OnDestroy()
	{
		myInstance = null;
	}