Compare commits
No commits in common. "8356f4ae10475be0a112abdd6c716968d6fcd699" and "73e245934200ec8b12f7c1e82a8e545da2f97872" have entirely different histories.
8356f4ae10
...
73e2459342
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 8f7ebe912ef903c458266e5259f4eec7
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
fileFormatVersion: 2
|
|
||||||
guid: 00e1f7ea5be7c564faf42d035aec7f53
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
|
@ -12,7 +12,7 @@ public class TowerPlacementManager : MonoBehaviour
|
||||||
/// Sender
|
/// Sender
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static event Action<TowerPlacementManager> OnSpawnGridRequested;
|
public static event Action<TowerPlacementManager> OnSpawnGridRequested;
|
||||||
public static TowerPlacementManager Instance;
|
public static TowerPlacementManager Singleton;
|
||||||
|
|
||||||
// Section: Mouse
|
// Section: Mouse
|
||||||
private SlotManager CurrentSelectedSlot;
|
private SlotManager CurrentSelectedSlot;
|
||||||
|
@ -29,9 +29,9 @@ public class TowerPlacementManager : MonoBehaviour
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
if (Instance != this)
|
if (Singleton != this)
|
||||||
Destroy(Instance);
|
Destroy(Singleton);
|
||||||
Instance = this;
|
Singleton = this;
|
||||||
|
|
||||||
OnSpawnGridRequested?.Invoke(this);
|
OnSpawnGridRequested?.Invoke(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue