|
Post by Dory on Feb 26, 2023 12:39:12 GMT
Hello. I'm working on a simple shooter foe mobile. I succesfully created a working player (usnig the proper mobile template). Everything is working fin when I run the scene at first in the editor, BUT when the player dies and respawn, he I can not use the replace wepon buttons, and the "use" button is the one that swiches the right hand wepons, but the original button doesn't work at all... also the left one.. and also the sniper aim scope (when activated) is apperently all "rayCastTarget" in it's UI and I'm unable to press any button or use any of the screen to do anything..
I've tested the original player prefab for mobile shooter. and it does work properly after respawn... all the elemets appear to be the same in my model... what is missing? how can I fix this? can anyone help??
|
|
|
Post by Dory on Feb 26, 2023 20:39:17 GMT
Okay... Finely I've found the source of the problem and now everything is working just fine thank God lol. Apparently there was another hole inventory clone clone that was created in the process (it happens every time for soe reason) when creating a new player. And it is displayed on top of the first one and not connected correctly etc... And was blocking the ability to use the first one. All that is in the prefab.. So once I removed that, everything was working correctly thank God. Even the inventory. All is working as it should. Thanks a lot! Now I can move on to create the game 🙂
|
|