Hi All,
I am trying to implement the functionality in my game whereby a placed item will change material after a certain amount of time. Now…I tried this with a simple delay and it worked - but only for the most recent item placed (as in if i place 3 of them then it would only happen to the last one placed - if within the time limit).
I need a way for this to happen to each item (whereby the time limit is gathered from the item itself - as all items will have a different time limit) and for the delay to “stick” to the item and not carry on down the line.
This just completely ignores the timer - which I do understand why (it sets the timer then calls the function immediately after) - so it seems to just not use the timer - despite it being on event called
Using a straight delay does not work (as above)
Creating an array of objects and then making the material change on the specific reference in the current context ALSO does not work. It creates an overarching timer that (as in the first para) doesn’t apply to the specific instance but to all objects being placed and only affects the most recently placed.
Does anyone know how I can make a timer for changing the mats whereby the amount of time is gleaned from the instantiated object that the mat change needs to happen to - and it happens to them asynchronously?