Table of Contents

Class UIPanelController

Namespace
CodeBase.Patterns.Example
Assembly
4Experience.CodeBase.Patterns.Samples.dll
public class UIPanelController : SingletonMonoBehaviour<UIPanelController>
Inheritance
Object
Component
Behaviour
MonoBehaviour
UIPanelController
Inherited Members
Extension Methods

Properties

BackgroundGameboard

private Image BackgroundGameboard { get; set; }

Property Value

Image

EndGamePanel

private GameObject EndGamePanel { get; set; }

Property Value

GameObject

EndText

private TextMeshProUGUI EndText { get; set; }

Property Value

TextMeshProUGUI

GameboardGameObject

private GameObject GameboardGameObject { get; set; }

Property Value

GameObject

MainMenuPanel

private GameObject MainMenuPanel { get; set; }

Property Value

GameObject

Methods

AttachToEvents()

private void AttachToEvents()

ChangeBackgroundColor(Color)

private void ChangeBackgroundColor(Color targetColor)

Parameters

targetColor Color

Decommission()

Method called when a Singleton instance is destroyed within the OnDestroy callback. It is used to overwrite the destroyed behavior.

protected override void Decommission()

DetachFromEvents()

private void DetachFromEvents()

DisplayEndPanel(string)

public void DisplayEndPanel(string endText)

Parameters

endText string

DisplayGameboard()

public void DisplayGameboard()

Initialize()

Method called when a Singleton instance is created within the Awake callback. It is used to override the initialization behavior.

protected override void Initialize()

PlayAgainDisplayGameboard()

public void PlayAgainDisplayGameboard()