[TASK] Added more duck spawn, performance fixes, instruction in the minigame, option to zoom in on stickers
This commit is contained in:
@@ -19,16 +19,12 @@ public class CollectableDuck: MonoBehaviour
|
||||
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
if (Input.GetMouseButtonUp(0) && BadeendGoGameManager.Instance.GameState == GameState.Map)
|
||||
{
|
||||
var ray = _camera.ScreenPointToRay(Input.mousePosition);
|
||||
RaycastHit hit;;
|
||||
if (Physics.Raycast(ray, out hit) && hit.collider == _collider)
|
||||
{
|
||||
if (CollectableDuckData == null)
|
||||
{
|
||||
throw new Exception("Unknown duck clicked in '" + gameObject.name + "'");
|
||||
}
|
||||
CollectableDuckManager.Instance.OnDuckClicked(CollectableDuckData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user