コード例 #1
0
 /// <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));
 }
コード例 #2
0
        protected override void Awake()
        {
            base.Awake ();

            if (Application.isPlaying) {
                instance = this;

                defaultShieldAlpha = defaultShieldColor.a;
                shieldAlpha = defaultShieldAlpha;
            }
        }