void Start() { MainInstance = this; panel = GetComponent <Image>(); if (UseStartColor) { TargetColor = panel.color; } else { panel.color = TargetColor; } StartEvents.Invoke(); }
private void OnDestroy() { MainInstance = null; }