void Awake() { if (s_miscUI == null) s_miscUI = this; else Destroy(this.gameObject); EnemyStunnedTextSpriteRen = transform.GetChild(0).GetComponent<SpriteRenderer>(); EnemyStunnedTextSpriteRen.enabled = false; stunDisplayDuration = 0f; m_EnemyStunnedTextAnimate = new Animate(EnemyStunnedTextSpriteRen.transform); }
void Awake() { if (s_miscUI == null) { s_miscUI = this; } else { Destroy(this.gameObject); } EnemyStunnedTextSpriteRen = transform.GetChild(0).GetComponent <SpriteRenderer>(); EnemyStunnedTextSpriteRen.enabled = false; stunDisplayDuration = 0f; m_EnemyStunnedTextAnimate = new Animate(EnemyStunnedTextSpriteRen.transform); }
void OnDestroy() { s_miscUI = null; }