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; }
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; }
void Start() { isQuestioning = false; catchedIjin = null; }