예제 #1
0
 private void Awake()
 {
     gameController = GameObject.FindGameObjectWithTag("GameController");
     db             = gameController.GetComponent <ElementDatabase>();
     cam            = GameObject.FindGameObjectWithTag("FPSCam").GetComponent <Camera>();
     environment    = GameObject.FindGameObjectWithTag("Environment");
 }
예제 #2
0
    private void Awake()
    {
        gameController = GameObject.FindGameObjectWithTag("GameController");
        db             = gameController.GetComponent <ElementDatabase>();

        baseGround = GameObject.FindGameObjectWithTag("Environment");
    }
예제 #3
0
    Vector3 mousePos;             //Where the mouse is

    // Start is called before the first frame update
    void Start()
    {
        hand           = GameObject.FindGameObjectWithTag("Hand").transform;
        gameController = GameObject.FindGameObjectWithTag("GameController");
        db             = gameController.GetComponent <ElementDatabase>();
        cam            = GameObject.FindGameObjectWithTag("FPSCam").GetComponent <Camera>();
        environment    = GameObject.FindGameObjectWithTag("Environment");
        blockLocations = gameController.GetComponent <BlockDatabase>();
    }
예제 #4
0
 void Awake()
 {
     gameController = GameObject.FindGameObjectWithTag("GameController");
     eleDB          = gameController.GetComponent <ElementDatabase>();
     parent         = GameObject.FindGameObjectWithTag("CombinationView").transform;
     activeElements = gameController.GetComponent <ActiveElements>();
     comboDB        = gameController.GetComponent <CombinationDatabase>();
     inventory      = gameController.GetComponent <Inventory>();
     grid           = GameObject.FindGameObjectWithTag("InventoryView").GetComponent <PopulateGrid>();
 }
예제 #5
0
    void Awake()
    {
        hand           = GameObject.FindGameObjectWithTag("GodHand").transform;
        gameController = GameObject.FindGameObjectWithTag("GameController");
        db             = gameController.GetComponent <ElementDatabase>();
        cam            = GameObject.FindGameObjectWithTag("GodCam").GetComponent <Camera>();
        environment    = GameObject.FindGameObjectWithTag("Environment");
        blockLocations = gameController.GetComponent <BlockDatabase>();

        layerMask = layermask_to_layer(layer);
    }
예제 #6
0
        public MainWindow()
        {
            InitializeComponent();

            _ElementDatabase = new ElementDatabase();
            _ElementDatabase.DatabaseLoaded      += _ElementDatabase_DatabaseLoaded;
            _ElementDatabase.DatabaseChanged     += _ElementDatabase_DatabaseChanged;
            _ElementDatabase.DatabaseSaved       += _ElementDatabase_DatabaseSaved;
            _ElementDatabase.DatabaseError       += _ElementDatabase_DatabaseError;
            _ElementDatabase.DatabaseOpenChanged += _ElementDatabase_DatabaseOpenChanged;

            _LastLocation = Path.GetDirectoryName(Path.GetFullPath(Uri.UnescapeDataString(new Uri(Assembly.GetExecutingAssembly().CodeBase).AbsolutePath)));
        }
예제 #7
0
        public MainWindow()
        {
            InitializeComponent();

            _ElementDatabase = new ElementDatabase();
            _ElementDatabase.DatabaseLoaded            += _ElementDatabase_DatabaseLoaded;
            _ElementDatabase.DatabaseError             += _ElementDatabase_DatabaseError;
            _ElementDatabase.DiscoveredElementsChanged += _ElementDatabase_DiscoveredElementsChanged;
            _ElementDatabase.ProgressLoaded            += _ElementDatabase_ProgressLoaded;
            _ElementDatabase.ProgressSaved             += _ElementDatabase_ProgressSaved;

            _LastLocation = ExePath;
        }
예제 #8
0
 // Use this for initialization
 void Awake()
 {
     globalData = GameObject.FindGameObjectWithTag("GameController");
     elements = globalData.GetComponent<ElementDatabase>();
     w = GameObject.FindGameObjectWithTag("Weather").GetComponent<WeatherSync>();
 }
 // Start is called before the first frame update
 void Start()
 {
     gameController = GameObject.FindGameObjectWithTag("GameController");
     db             = gameController.GetComponent <ElementDatabase>();
 }
예제 #10
0
 private void Awake()
 {
     gameController = GameObject.FindGameObjectWithTag("GameController");
     inventory      = gameController.GetComponent <Inventory>();
     db             = gameController.GetComponent <ElementDatabase>();
 }