void Awake() { _PMCreation = PMCreation._PMCreation; gameUI = GameUI._gameUI; level3Script = FindObjectOfType <Level03>(); ballRenderer = GetComponent <Renderer>(); ballRigidbody = GetComponent <Rigidbody>(); ballTrailRenderer = GetComponent <TrailRenderer>(); ballAudioSource = GetComponent <AudioSource>(); }
void Start() { _PMCreation = PMCreation._PMCreation; if (_PMCreation != null) { Debug.Log("PMCreation Found"); } else { Debug.Log("PMCreation not Found"); } }
void Start() { _PMCreation = PMCreation._PMCreation; gameUI = GameUI._gameUI; player = _PMCreation.player; playerHolder = new GameObject("PlayerHolder"); SpawnAllPlayers(); SetGoalTrigger(); SetupRulesPanel(); StartCoroutine(GameLoop()); }
void ConfirmationInput() { if (canConfirm) { if (Input.GetButtonDown("J1_A")) { Debug.Log("PlayerOne Confirmed"); joinLobby.SetActive(false); playingLobby.SetActive(true); GameObject PMCreation = new GameObject("PMCreation"); PMCreation _PMCreation = PMCreation.AddComponent <PMCreation>(); _PMCreation.prePlayerManagerReady = GetPrePlayerManagerReady(); this.enabled = false; } } }
void Start() { _PMCreation = PMCreation._PMCreation; if (_PMCreation != null) { Debug.Log("PMCreation Found"); } else { Debug.Log("PMCreation not Found"); } gameUI = GameUI._gameUI; if (gameUI != null) { Debug.Log("GameUI Found"); } else { Debug.Log("GameUI not Found"); } player = _PMCreation.player; playerHolder = new GameObject("PlayerHolder"); if (playerHolder != null) { Debug.Log("PlayerHolder Made"); } else { Debug.Log("PlayerHolder Failed"); } Debug.Log("Current Level: " + _PMCreation.levelNumber); SpawnAllPlayers(); SetupRulesPanel(); StartCoroutine(GameLoop()); }
void SingletonPattern() { if (_PMCreation == null) { _PMCreation = this; DontDestroyOnLoad(this); } else { Destroy(gameObject); } if (_PMCreation != null) { Debug.Log("PMCreation Successfully Made"); } else { Debug.Log("PMCreation has Failed"); } }
void Start() { _PMCreation = PMCreation._PMCreation; gameUI = GameUI._gameUI; player = _PMCreation.player; playerHolder = new GameObject("PlayerHolder"); SpawnAllPlayers(); SetupRulesPanel(); StartCoroutine(GameLoop()); if (_PMCreation != null) { Debug.Log("PMCreation Found"); } else { Debug.Log("PMCreation not Found"); } if (gameUI != null) { Debug.Log("GameUI Found"); } else { Debug.Log("GameUI not Found"); } if (playerHolder != null) { Debug.Log("PlayerHolder Made Success"); } else { Debug.Log("PlayerHolder Made Failed"); } }