Method not being called on Unity Event
Hello everyone,
I'm developing an app for VR that has world space buttons by using Unity's canvas in world space. On one set of buttons I have the event call a method from a "game" manager to select a zone. This is how the button event is setup:
The method I'm talking about is the SelectBodyZone, it receives an int as parameter and selects the desired zone from a level. The level is in a LevelDB that is a scriptable object, and the zones are S.Os as well. Bellow is the code from the manager script:
public void SelectBodyZone(int selectedZone)
{
WorldUIManager.Instance.ChangeThermostatText("A começar...");
if (selectedZone < _currentLevel.BodyZones.Length)
{
if (!_currentLevel.BodyZones[selectedZone].IsCompleted)
{
_currentZone = _currentLevel.BodyZones[selectedZone];
_moveValidator.ValidatorSetup(_currentZone.BoneTransform.position,
_currentZone.Bounds.size,
_currentZone.ZoneNormal);
}
else
{
Debug.LogWarning("No more zones!");
}
}
}
The problem is, when I build the app, this method doesn't run which stops the flow. Any help is apreciated! If needed I'll provide more information!
Your answer
Follow this Question
Related Questions
re historic GUI system 1 Answer
Prefabs with different tag names activate level Clear help! 2 Answers
Detect direction of drag (Event Trigger) 0 Answers
onClick Event for UI Text? 1 Answer