Compare commits

..

No commits in common. "8356f4ae10475be0a112abdd6c716968d6fcd699" and "73e245934200ec8b12f7c1e82a8e545da2f97872" have entirely different histories.

5 changed files with 2185 additions and 252 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 8f7ebe912ef903c458266e5259f4eec7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,15 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public static GameManager Instance;
private void Start()
{
if (Instance != this)
Destroy(Instance);
Instance = this;
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 00e1f7ea5be7c564faf42d035aec7f53
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,7 +12,7 @@ public class TowerPlacementManager : MonoBehaviour
/// Sender
/// </summary>
public static event Action<TowerPlacementManager> OnSpawnGridRequested;
public static TowerPlacementManager Instance;
public static TowerPlacementManager Singleton;
// Section: Mouse
private SlotManager CurrentSelectedSlot;
@ -29,9 +29,9 @@ public class TowerPlacementManager : MonoBehaviour
private void Start()
{
if (Instance != this)
Destroy(Instance);
Instance = this;
if (Singleton != this)
Destroy(Singleton);
Singleton = this;
OnSpawnGridRequested?.Invoke(this);
}