Exemplo n.º 1
0
    void Awake()
    {
        GameObject controller = GameObject.Find("Controller");

        store      = controller.GetComponent <ObjectStore>();
        possession = controller.GetComponent <PossessionHandler>();

        dummy = GameObject.Find("DummyObject");

        spawnPoint = GetComponentInChildren <SpawnHandler>().gameObject;
    }
Exemplo n.º 2
0
    void Awake()
    {
        hostile    = GetComponent <HostileController>();
        store      = GetComponent <ObjectStore>();
        placement  = GetComponent <PlacementController>();
        possession = GetComponent <PossessionHandler>();
        office     = GameObject.Find("LeMinotaure").GetComponent <OfficeController>();

        foreach (PulseController pC in startingControllers)
        {
            pulseControllers.Add(pC);
        }

        screenCentreH = Screen.height / 2;
        screenCentreW = Screen.width / 2;
    }