コード例 #1
0
 void OnTriggerEnter(Collider collider)
 {
     if (collider.CompareTag("Player"))
     {
         chc = collider.GetComponent <Character_controller>();
         chc.bubbleText.GetComponent <TextMesh>().characterSize = 0.4f;
         chc.OpenDialogBubble("Oh well, I dont\nhave pasta on my\nlist... But you never\nknow when the\napocalipse will come");
     }
 }
コード例 #2
0
 void OnTriggerEnter(Collider collider)
 {
     if (collider.CompareTag("Player"))
     {
         chc = collider.GetComponent <Character_controller>();
         chc.OpenDialogBubble("I can't spend money given\nfrom my mum...So gotta look\naround and see if someone\nlost their change...\nFinders keepers,\nlosers weepers");
         chc.ChangeDialogBubbleFontSize(10);
     }
 }