Объединяю с работой dfilipkin

This commit is contained in:
FreshMix committed 2026-04-28 20:44:24 +03:00
1 parent 05bd220cad
commit b167fc448f
240 files changed
+315725 -12011

No files matched your search

@@ -0,0 +1,18 @@
using UnityEngine;
public class AddresActiveWindow : MonoBehaviour
{
[SerializeField]
private GameObject firstWindow;
private GameObject AddresActiveObj;
private void Start()
{
if(firstWindow != null) { AddresActiveObj = firstWindow; }
}
public void set (GameObject activeWindow) { AddresActiveObj = activeWindow; }
public GameObject get () { return AddresActiveObj; }
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4548c70abaacf2b44b108d31a8169d5e
@@ -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);
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8ea5b75b9f07f914ab23a2b0d885ff75