コード例 #1
0
 // Use this for initialization
 void Start()
 {
     cube              = FindObjectOfType <RotateCube>().gameObject;
     player            = FindObjectOfType <PlayerController>();
     cubeSpeechBoxAnim = cubeSpeechBox.GetComponent <Animator>();
     cubeTyper         = cubeSpeechBox.GetComponentInChildren <CubeTextTyper>();
     for (int i = 0; i < whatToSay.Length; i++)
     {
         whatToSay[i] = whatToSay[i].Replace("\\n", "\n");
     }
 }
コード例 #2
0
 void Start()
 {
     followTarget = FindObjectOfType <CubeTextFollow>().gameObject;
     textTyper    = GetComponentInChildren <CubeTextTyper>();
     particles    = GetComponent <ParticleSystem>();
 }