예제 #1
0
 public void CheckTo(AbstractIjin ijin)
 {
     if (ijin == null)
     {
         gameObject.GetComponent <Crane>().isCatched = false;
     }
     else
     {
         gameObject.GetComponent <Crane>().isCatched = true;
     }
     GameObject.Find("Ochimusha").GetComponent <Ochimusha>().catchedIjin = ijin;
 }
예제 #2
0
        public IEnumerator Question()
        {
            if (isQuestioning)
            {
                yield break;
            }
            isQuestioning  = true;
            questionedIjin = catchedIjin;

            yield return(UnityEngine.SceneManagement.SceneManager.LoadSceneAsync("Question", LoadSceneMode.Additive));

            GameObject.Find("LeftButton").GetComponent <BoxCollider2D>().enabled  = false;
            GameObject.Find("RightButton").GetComponent <BoxCollider2D>().enabled = false;
        }
예제 #3
0
 void Start()
 {
     isQuestioning = false;
     catchedIjin   = null;
 }