Exemplo n.º 1
0
 void Awake()
 {
     if (!BackgroundImage.instance)
     {
         BackgroundImage.instance = this;
     }
 }
Exemplo n.º 2
0
        void OnDestroy()
        {
            Debug.Assert(BackgroundImage.instance == this);

            BackgroundImage.instance = null;
        }