예제 #1
0
 /** `Kill` : **`coroutine`**
  *
  * Kills the `Player` that entered the `Collider`.
 **/
 public IEnumerator Kill(Person person) {
     if (!wait) {
         wait = true;
         yield return new WaitForSeconds(2f);
         util::CameraFade.StartAlphaFade(
             new Color(255,255,255),false,8f,2f,
             ()=> {
                 if (!Pathways.mainCamera) return;
                 Pathways.mainCamera.cullingMask = 0;
                 Pathways.mainCamera.clearFlags =
                     CameraClearFlags.SolidColor;
                 Pathways.mainCamera.backgroundColor =
                     new Color(255,255,255); });
         person.Kill(message);
         yield return new WaitForSeconds(12f);
         wait = false;
     }
 }
예제 #2
0
 public virtual bool View(
                 Person sender,
                 EventArgs e,
                 lit::Command c,
                 string input) => View();