Пример #1
0
    // Use this for initialization
    void Start()
    {
        var codes =
            sculptureScript = GameObject.Find("Sculpture").GetComponent <SculptureScript>();

        SetAnimator();

        ovconn = gameObject.AddComponent <OpenvibeASConnection>();
        if (doOpenvibeASConnection)
        {
            connectOV();
        }

        Debug.Log("animate");

        animator.SetTrigger("Animate");
        modelIndex = 0;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     animate         = false;
     sculptureScript = GameObject.Find("Sculpture").GetComponent <SculptureScript>();
     animator        = GameObject.Find("Sculpture").GetComponent <Animator>();
 }
Пример #3
0
 void Awake()
 {
     animate         = false;
     trackedObj      = GetComponent <SteamVR_TrackedObject>();
     sculptureScript = GameObject.Find("Sculpture").GetComponent <SculptureScript>();
 }
 void Awake()
 {
     sculptureScript = GameObject.Find("Sculpture").GetComponent <SculptureScript>();
 }