void Start() { flashControlHelperClass = FlashControlsHelperClass.Instance; if (flashControlHelperClass == null && MyCube != null) { MyCube.GetComponent <Renderer>().material.color = Color.red; } else if (MyCube != null) { MyCube.GetComponent <Renderer>().material.color = Color.green; } string checkFlashControl = ""; }
void Start() { #if UNITY_ANDROID flashControlHelperClass = FlashControlsHelperClass.Instance; #endif }
void OnApplicationQuit() { _instance = null; }