playing selection SFX and rendering unit stats only when selecting own units

This commit is contained in:
devZoGok
2023-12-23 16:30:14 +02:00
parent 20df6a10dd
commit 24de3bb4b8
12 changed files with 93 additions and 90 deletions
-1
View File
@@ -55,7 +55,6 @@ namespace battleship{
SOL_LUA_STATE.new_usertype<Unit>(
"Unit", sol::constructors<Unit(Player*, int, Vector3, Quaternion)>(),
"toggleSelection", &Unit::toggleSelection,
"getUnitClass", &Unit::getUnitClass,
"toEngineer", &Unit::toEngineer,
"toPointDefense", &Unit::toPointDefense,