Beispiel #1
0
 void Start()
 {
     player       = FindObjectOfType <Interact>();
     playerCamera = FindObjectOfType <Camera>();
     housesetup   = FindObjectOfType <HouseIdentifier>().houseSetup;
     StartCoroutine("DataCollector");
 }
Beispiel #2
0
 void Awake()
 {
     try
     {
         houseSetup = FindObjectOfType <HouseIdentifier>().houseSetup;
         GetSceneNames();
     }
     catch
     {
         Debug.LogError("Assign a HouseSetup Scriptable Obj to agent!");
     }
     player = FindObjectOfType <RoomIdentifier>();
 }
Beispiel #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();
        }