Pull request #66: - Retiré temporairement l'erreur qui apparaît quand on intéragit avec un niveau qui n'a pas de WaveConfig.
Merge in CGD/gather-and-defend from bugfix/WaveConfigNullCheck to main * commit '2ff59828210c23b0706da1e934aabadc5a60b52e': - Retiré temporairement l'erreur qui apparaît quand on intéragit avec un niveau qui n'a pas de WaveConfig.
This commit is contained in:
commit
43c569dfec
@ -6,6 +6,7 @@ using System.Collections;
|
||||
using GatherAndDefend.LevelEditor;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEditorInternal;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@ -25,6 +26,8 @@ public class ClickBehavior : MonoBehaviour
|
||||
}
|
||||
#if UNITY_EDITOR
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
try
|
||||
{
|
||||
const float clickRangeForSpawn = 0.7f;
|
||||
var spawners = LevelManager.Instance.GetAll<SpawnerTile>();
|
||||
@ -36,6 +39,12 @@ public class ClickBehavior : MonoBehaviour
|
||||
closest.TriggerSpawnDebug();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.Out.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user