| @@ -0,0 +1,24 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class StopRemy : MonoBehaviour { | ||
|
|
||
| Animator anim; | ||
| public iTweenEvent spvar; | ||
|
|
||
| // Use this for initialization | ||
| void Start () { | ||
| anim = GetComponent<Animator> (); | ||
| spvar = GetComponent<iTweenEvent> (); | ||
|
|
||
| } | ||
|
|
||
| void OnTriggerEnter (Collider col){ | ||
| spvar.enabled = false; | ||
| anim.SetTrigger ("isDancing"); | ||
|
|
||
| } | ||
| // Update is called once per frame | ||
| void Update () { | ||
| } | ||
| } |
| @@ -0,0 +1,40 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class TalkRemy : MonoBehaviour { | ||
|
|
||
| Animator anim; | ||
| public iTweenEvent scvar; | ||
|
|
||
| // Use this for initialization | ||
| void Start(){ | ||
| anim = GetComponent<Animator> (); | ||
| scvar = GetComponent<iTweenEvent> (); | ||
| StartCoroutine ("text1"); | ||
| } | ||
|
|
||
| IEnumerator text1(){ | ||
| yield return new WaitForSeconds (5.0f); | ||
| GameObject txtbx = GameObject.FindGameObjectWithTag ("text1"); | ||
| GameObject cam = GameObject.FindGameObjectWithTag ("MainCamera"); | ||
| txtbx.transform.position = cam.transform.position + new Vector3 (9.61f, -4.0f, -9.14f); | ||
|
|
||
|
|
||
| anim.SetTrigger ("isTalking"); | ||
|
|
||
| Destroy (txtbx, 7.0f); | ||
| StartCoroutine ("move1"); | ||
| } | ||
|
|
||
| IEnumerator move1(){ | ||
| yield return new WaitForSeconds (8.0f); | ||
|
|
||
| anim.SetTrigger ("isWalking"); | ||
| scvar.enabled = true; | ||
|
|
||
| } | ||
| // Update is called once per frame | ||
| void Update () { | ||
|
|
||
| } | ||
| } |
| @@ -1,6 +1,2 @@ | ||
| Base path: C:/Program Files/Unity/Editor/Data | ||
| Cmd: getPlatforms | ||