Exemple #1
0
    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
 }
Exemple #3
0
 void OnApplicationQuit()
 {
     _instance = null;
 }