/// <summary> /// Wait the specified duration and callback. /// </summary> /// <param name="duration">Duration.</param> /// <param name="callback">Callback.</param> public void Wait(float duration, SceneManager.FinishedDelegate callback) { this.StartCoroutine (SceneManager.Instance.CWait (duration, callback)); }
protected override void Awake() { base.Awake (); if (Application.isPlaying) { instance = this; defaultShieldAlpha = defaultShieldColor.a; shieldAlpha = defaultShieldAlpha; } }