A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
I got it with cam.transform.position = new Vector3(0, TowerFloors[currentTime - 1].transform.position.y, -10); thanks.
Hello fellas. I'm running this code below that instantiates a prefab at different y position depending of the number passed to the function:...
Any tip here?
That I know lol The tower has been generated what I'm missing is the code for what you've tried to explain :( I've been slow in understanding this...
That's right. How to check the weeks 2-5?
Sure I know that. I tried an if statement but it doesn't work because middle floor can be 2 or 3, what I tried: if (currentTime == 1) //week 1...
Really appreciate your help guys. Btw take a look at what I said please: "The logic that is missing is assigning current week to index of...
Can't I just add private List<Transform> TowerFloors = new List<Transform>(); to my code and add the elements? The logic that is missing is...
Thanks.GetWeekOfMonth is here: public static int GetWeekOfMonth(this DateTime time) { DateTime first = new DateTime(time.Year,...
Could you please give an insight in terms of code please?
Hello unity fellas. I am instantiating a player inside a floor using this code: private void GenerateTower(int numberOfFloors) {...
Solved with localPosition after instantiate thanks
Hi. I'm instantiating a prefab for each gameobject that I have. I want to spawn it at 0,0,0 inside the parent but it spawns with like 5,3,0. The...
I managed to do it, can be closed ty.
Like I mentioned before I have this variable that says I have x floors: GameObject[] floors = GameObject.FindGameObjectsWithTag("FloorClone");...
bump
Ye I had that created: GameObject[] floors = GameObject.FindGameObjectsWithTag("FloorClone"); int floorsCount = floors.Length / 2; This...
Thanks for the reply. I already have them instantiated by position as shown: TowerClose.transform.localScale = new Vector3(0.78f, 0.78f, 0f);...
Yes, there will be 4 or 5 floors depending on the month :) I'm not getting into the solution mentioned by @Kurt-Dekker..