public void Start() { #region GetComponents gameWorld = GetComponent <GameWorld>(); rayManager = GetComponent <RaycastManager>(); touchManager = GetComponent <TouchManager>(); anchorHandler = GetComponent <MainAnchorHandler>(); buttonStateMachine = GetComponent <ButtonStateMachine>(); objectSpawnHandler = GetComponent <ObjectSpawnHandler>(); baws = gameObject.GetComponent <BAWS>(); #endregion }
private Dictionary <string, List <GameObject> > activeObjectsInScene = new Dictionary <string, List <GameObject> >(); // sahnede aktif olanlar private void Awake() { if (ObjectSpawnHandler.Instance == null) { ObjectSpawnHandler.Instance = this; } else { if (ObjectSpawnHandler.Instance != this) { Destroy(gameObject); } } DontDestroyOnLoad(gameObject); }