Ejemplo n.º 1
0
 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
 }
Ejemplo n.º 2
0
    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);
    }