private void Awake() { if (Instance != null && Instance != this) { GameObject.DestroyImmediate(gameObject); return; } Instance = this; }
void Start() { m_Image = this.GetComponent <Image>(); if (Instance != null && Instance != this) { GameObject.DestroyImmediate(gameObject); return; } Instance = this; }
private void Start() { fadeBlack = GetComponent <FadeBlack>(); }