Update Selector.cs

This commit is contained in:
Andrew Lee 2021-05-25 18:10:20 -04:00
parent f83894eb7f
commit a203857b77
Signed by: andrew
GPG key ID: 4DCE67C47836D125

View file

@ -31,19 +31,19 @@ public class Selector : MonoBehaviour
{
if (twoSelected == false)
{
physGun.SetActive(true);
cineCamera.SetActive(true);
twoSelected = true;
if (oneSelected == true)
{
oneSelected = false;
}
Debug.Log("PhysGun selected");
Debug.Log("CineCamera selected");
}
else
{
physGun.SetActive(false);
cineCamera.SetActive(false);
twoSelected = false;
Debug.Log("PhysGun deselected");
Debug.Log("CineCamera deselected");
}
}
}