//passing the parameters i'll use in future into start function so that they are already accessible void Start() { ui = GameObject.FindWithTag("ui").GetComponent <UiManagerScript>(); ball = GameObject.FindWithTag("Ball").GetComponent <ballScript>(); }
protected void InitializeUiManager() { thisUiManager = theUiManager.GetComponent <UiManagerScript>(); }
public void SetUIManager(UiManagerScript uiManager) { this.uiManager = uiManager; instructionsAdded += this.uiManager.receiveInstruction; instructionExecuted += this.uiManager.executeInstruction; }