示例#1
0
 public void Activate(AndrewScript andrew)
 {
     FlickerIcon.gameObject.SetActive(false);
     Pressed = true;
     Instruction.SetActive(false);
     StartCoroutine(Release(andrew));
 }
示例#2
0
        IEnumerator Release(AndrewScript andrew)
        {
            andrew.Hack();
            Tv.sprite = TvImages[1];
            yield return(new WaitForSeconds(2.5f));

            TvAnimator.enabled = true;
            yield return(new WaitForSeconds(2));

            TvAnimator.enabled = false;
            Tv.sprite          = TvImages[2];
            yield return(new WaitForSeconds(1));

            WallCollider.isTrigger = true;
            andrew.DoneHacking();
        }