Exemplo n.º 1
0
 void Start()
 {
     player       = FindObjectOfType <Interact>();
     playerCamera = FindObjectOfType <Camera>();
     housesetup   = FindObjectOfType <HouseIdentifier>().houseSetup;
     StartCoroutine("DataCollector");
 }
Exemplo n.º 2
0
 void Awake()
 {
     try
     {
         houseSetup = FindObjectOfType <HouseIdentifier>().houseSetup;
         GetSceneNames();
     }
     catch
     {
         Debug.LogError("Assign a HouseSetup Scriptable Obj to agent!");
     }
     player = FindObjectOfType <RoomIdentifier>();
 }
Exemplo n.º 3
0
        void Awake()
        {
            roomManager = FindObjectOfType <RoomManager>();
            houseSetup  = FindObjectOfType <HouseIdentifier>().houseSetup;
            string b = string.Empty;

            for (int i = 0; i < houseSetup.name.Length; i++)
            {
                if (Char.IsDigit(houseSetup.name[i]))
                {
                    b += (houseSetup.name[i]);
                    determineMap(Convert.ToInt32(b));
                }
            }


            setMap();
        }