void Awake() { if( mInstance != null ) { Debug.LogError( string.Format( "Only one instance of OutroScreen allowed! Destroying:" + gameObject.name +", Other:" + mInstance.gameObject.name ) ); return; } mInstance = this; StartCoroutine( "DoOutro" ); }
// Start is called before the first frame update void Start() { inst = this; StartCoroutine(IntroStep()); }