Renamed GameController
This commit is contained in:
@@ -10,7 +10,7 @@ MonoBehaviour:
|
|||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3}
|
m_Script: {fileID: 11500000, guid: c333ccfdd0cbdbc4ca30cef2dd6e6b9b, type: 3}
|
||||||
m_Name: GameController
|
m_Name: GameManager
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
serializedUdonProgramAsset: {fileID: 11400000, guid: ff2ee01d710668d489ec69b41b7dd764, type: 2}
|
serializedUdonProgramAsset: {fileID: 11400000, guid: ff2ee01d710668d489ec69b41b7dd764, type: 2}
|
||||||
udonAssembly:
|
udonAssembly:
|
||||||
@@ -11,7 +11,7 @@ namespace Marro.PacManUdon
|
|||||||
using VRC.Udon.Common.Interfaces;
|
using VRC.Udon.Common.Interfaces;
|
||||||
using VRC.SDK3.Data;
|
using VRC.SDK3.Data;
|
||||||
|
|
||||||
public class GameController : UdonSharpBehaviour
|
public class GameManager : UdonSharpBehaviour
|
||||||
{
|
{
|
||||||
[Header("Static game components")]
|
[Header("Static game components")]
|
||||||
[SerializeField] private Maze[] mazes;
|
[SerializeField] private Maze[] mazes;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 88e88d9bfa304c8448489e53fc031f74
|
guid: 501bd6c4adad10344a5e5dc0598e0b24
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
public class GhostManager : UdonSharpBehaviour
|
public class GhostManager : UdonSharpBehaviour
|
||||||
{
|
{
|
||||||
[NonSerialized] public GameController gameController;
|
[NonSerialized] public GameManager gameController;
|
||||||
private Ghost[] ghosts;
|
private Ghost[] ghosts;
|
||||||
private Ghost blinky;
|
private Ghost blinky;
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
private bool frozen;
|
private bool frozen;
|
||||||
|
|
||||||
// This should be called once when the game is initialized
|
// This should be called once when the game is initialized
|
||||||
public void Initialize(GameObject[] ghostTargets, PacMan pacMan, GameController gameController)
|
public void Initialize(GameObject[] ghostTargets, PacMan pacMan, GameManager gameController)
|
||||||
{
|
{
|
||||||
this.gameController = gameController;
|
this.gameController = gameController;
|
||||||
ghosts = transform.GetComponentsInChildren<Ghost>(true);
|
ghosts = transform.GetComponentsInChildren<Ghost>(true);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
public class PacMan : GridMover
|
public class PacMan : GridMover
|
||||||
{
|
{
|
||||||
private GameController gameController;
|
private GameManager gameController;
|
||||||
private PlayerInput input;
|
private PlayerInput input;
|
||||||
private float defaultSpeed;
|
private float defaultSpeed;
|
||||||
private float powerPelletSpeed;
|
private float powerPelletSpeed;
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
[UdonSynced] private bool frozen;
|
[UdonSynced] private bool frozen;
|
||||||
|
|
||||||
|
|
||||||
public void Initialize(PlayerInput input, VRCObjectPool pelletPool, GameController gameController)
|
public void Initialize(PlayerInput input, VRCObjectPool pelletPool, GameManager gameController)
|
||||||
{
|
{
|
||||||
this.gameController = gameController;
|
this.gameController = gameController;
|
||||||
this.input = input;
|
this.input = input;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
public class PlayerInput : UdonSharpBehaviour
|
public class PlayerInput : UdonSharpBehaviour
|
||||||
{
|
{
|
||||||
public bool active;
|
public bool active;
|
||||||
private GameController gameController;
|
private GameManager gameController;
|
||||||
Vector2 inputHorizontal;
|
Vector2 inputHorizontal;
|
||||||
Vector2 inputVertical;
|
Vector2 inputVertical;
|
||||||
float horizontalValue;
|
float horizontalValue;
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
bool horizontalPriority;
|
bool horizontalPriority;
|
||||||
VRCPlayerApi player;
|
VRCPlayerApi player;
|
||||||
|
|
||||||
public void Initialize(GameController gameController)
|
public void Initialize(GameManager gameController)
|
||||||
{
|
{
|
||||||
this.gameController = gameController;
|
this.gameController = gameController;
|
||||||
inputHorizontal = Vector2.zero;
|
inputHorizontal = Vector2.zero;
|
||||||
|
|||||||
Reference in New Issue
Block a user