This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(EnemySpawner))] | |
public class EnemySpawnerEditor : Editor | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(EnemySpawner))] | |
public class EnemySpawnerEditor : Editor | |
{ | |
private EnemySpawner _enemySpawner; | |
public override void OnInspectorGUI() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(EnemySpawner))] | |
public class EnemySpawnerEditor : Editor | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Resets the map controller and initializes the map visualization | |
/// </summary> | |
public void Awake() | |
{ | |
MapVisualization.Initialize(MapboxAccess.Instance); | |
_tiles = new Dictionary<Vector2, UnityTile>(); | |
} | |
public void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Resets the map controller and initializes the map visualization | |
/// </summary> | |
//public void Awake() | |
//{ | |
// MapVisualization.Initialize(MapboxAccess.Instance); | |
// _tiles = new Dictionary<Vector2, UnityTile>(); | |
//} | |
//public void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class Loader : MonoBehaviour | |
{ | |
private AssetBundleCreateRequest bundleRequest; | |
private void Start() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Networking; | |
using UnityEngine.SceneManagement; | |
public class Loader : MonoBehaviour | |
{ | |
private AssetBundleCreateRequest bundleRequest; | |
private UnityWebRequest request; | |
private void Start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class CubeSpawner : MonoBehaviour | |
{ | |
private void OnEnable() | |
{ | |
int cubeCount = RemoteSettings.GetInt("cubesToSpawn"); | |
for (int i = 0; i < cubeCount; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[RequireComponent(typeof(RectTransform))] | |
public class VRUIItem : MonoBehaviour | |
{ | |
private BoxCollider boxCollider; | |
private RectTransform rectTransform; | |
private void OnEnable() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(SteamVR_LaserPointer))] | |
public class VRUIInput : MonoBehaviour | |
{ | |
private SteamVR_LaserPointer laserPointer; | |
private SteamVR_TrackedController trackedController; |