示例#1
0
        private void Awake()
        {
            instance = this;

            overlay = new Texture2D(1, 1);
            overlay.SetPixel(0, 0, Color.black.WithAlpha(startingAlpha));
            overlay.Apply();
        }
示例#2
0
 private void OnDestroy()
 {
     instance = null;
 }