Объединяю с работой dfilipkin
This commit is contained in:
1 parent
05bd220cad
commit
b167fc448f
240 files changed
+315725
-12011
No files matched your search
@@ -0,0 +1,31 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class StartNewWindows : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private GameObject mainObject;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject newWindow;
|
||||
|
||||
private AddresActiveWindow addresActWindow;
|
||||
//private GameObject activeWindow;
|
||||
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if(mainObject != null) { addresActWindow = mainObject.GetComponent<AddresActiveWindow>(); } else { Debug.LogError("addresActWindow čëč ŕęňčâíîĺ îęíî íĺ číčöčŕëčçčđîâŕíű!"); }
|
||||
|
||||
}
|
||||
private void closeActiveWindow()
|
||||
{
|
||||
addresActWindow.get().SetActive(false);
|
||||
}
|
||||
public void openNewWindow()
|
||||
{
|
||||
closeActiveWindow();
|
||||
newWindow.SetActive(true);
|
||||
addresActWindow.set(newWindow);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user