UnityEngine.Events.UnityAction GetChoiceIndex(int i, List <Choice> choices) { return(delegate { InkController inkControl = this.GetComponent <InkController>(); Debug.Log(i); inkControl.OnClickChoiceButton(choices[i]); }); }
// Use this for initialization void Start() { inkControl = GetComponent <InkController>(); //StartCoroutine(StartDelay()); kaylaAvailable = true; kaylaButton.color = blinkOff; amyButton.color = blinkOff; aso = GetComponent <AudioSource>(); camShake = GameObject.FindWithTag("MainCamera").GetComponent <CameraShake>(); }
void Start() { //コンポーネントの取得 _renderer = GameObject.Find("draw").GetComponent <InkController>(); _gauge = GetComponent <Image>(); }