[TASK] Added more duck spawn, performance fixes, instruction in the minigame, option to zoom in on stickers

This commit is contained in:
2019-08-30 00:39:13 +02:00
parent bb4b5afb18
commit c60a130874
51 changed files with 86781 additions and 45090 deletions

View File

@@ -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);
}
}