コード例 #1
0
 // Use this for initialization
 void Start()
 {
     cr      = FindObjectOfType <CircleRotation>();
     speech  = this.GetComponent(typeof(TextFileSpeaker)) as Crosstales.RTVoice.Tool.TextFileSpeaker;
     speaker = this.GetComponentInParent(typeof(Speaker)) as Crosstales.RTVoice.Speaker;
     Speaker.OnSpeakComplete += turnOff;
 }
コード例 #2
0
    void Start()
    {
        GameObject circleRotationObject = GameObject.FindWithTag("CircleHazard");

        if (circleRotationObject != null)
        {
            circleRotation = circleRotationObject.GetComponent <CircleRotation> ();
        }
    }
コード例 #3
0
ファイル: NeedleMovement.cs プロジェクト: Podzheg/Needles
 private void Initialize()
 {
     needleBody.SetActive(false);
     myBody     = GetComponent <Rigidbody2D>();
     gameCircle = GameObject.FindObjectOfType <CircleRotation>();
 }