Relative Content

Tag Archive for c#unity-game-engine2d

DontDestroyOnLoad переносит меня на теже координаты в сцене

Я хочу чтобы при нажатии кнопки на клавиатуре меня переносило на другую сцену с этим проблем не возникло но когда я попытался перенести туда своего персонажа чтоб не потерять его дочерние объекты,скрипты и статистику у меня начали появляться проблемы мой персонаж не хотел появлятся на заданной мной точке

How to make weapon only rotate on the Z axis and not around the player?

relatively new to game dev and have these scripts. works perfectly as intended but further into development decided that I no longer wanted the gun to rotate around the player and instead just to stay in one spot but rotate on the Z axis. Below I have my shooting script to control the weapon and bullet script to control the bullet.