示例#1
0
 void OnDestroy()
 {
     if (VotingManager.Instance == null)
     {
         return;
     }
     VotingManager.Instance.OnVotingStarted -= Show;
     VotingManager.Instance.OnVotingEnded   -= onVotePeriodEnded;
     Instance = null;
 }
示例#2
0
 void Awake()
 {
     canvasGroup.alpha = 1f;
     Instance          = this;
 }