コード例 #1
0
ファイル: Taskable.cs プロジェクト: braedenjc/Portfolio
    public void Start()
    {
        resource = GameObject.Find("Canvas-Resources").GetComponent <ResourceManager>(); //Load in the resource manager from our Scene in Unity.
        task     = GameObject.Find("Canvas-ActiveTask").GetComponent <ActiveTask>();

        caption = transform.GetComponent <Narrate.ProximityNarrationTrigger>();
    }
コード例 #2
0
 void Start()
 {
     dialog = GetComponent <Narrate.ProximityNarrationTrigger>();
     GetComponent <SphereCollider>().radius = dialog.proximity;
     // Get the duration of the last narration of the game
     timeToFinish = dialog.theNarration.phrases[0].duration;
 }