override protected void Start() { base.Start(); m_VersionDisplay = GetComponent <VersionDisplayUtil>(); if (m_VersionDisplay == null) { m_VersionDisplay = gameObject.AddComponent <VersionDisplayUtil>(); } AppleTVInputLoop(); QuitButton.Init(this); }
public static void Init(SceneController sceneController = null) { // Automatically instantiating a quit button for any Android derived platform that requires this mechanism. // Right now doing this only for PanasonicEx platform but we can add more platforms to the macro. #if SAGO_PANASONIC_EX GameObject quitButtonResource = Resources.Load("SagoApp/QuitButton") as GameObject; if (quitButtonResource) { GameObject quitButtonObject = Instantiate(quitButtonResource) as GameObject; QuitButton quitButton = quitButtonObject.GetComponentInChildren <QuitButton>(); if (quitButton) { Debug.Log("QuitButton-> Successfully loaded and instantiated QuitButton."); if (sceneController != null) { quitButtonObject.transform.parent = sceneController.transform; } } } #endif }