Ejemplo n.º 1
0
    //-----------------------------------------------------------------------------------------------------------------------------------------
    // Monobehaviour

    //Load Resources before Start() function is called
    protected virtual void Awake()
    {
        if (this.Hand == null)
        {
            this.Hand = SG_Util.CheckForTrackedHand(this.transform);
        }
    }
Ejemplo n.º 2
0
 /// <summary> Assign scripts relevant to this script's functioning. </summary>
 protected virtual void CheckForScripts()
 {
     SG_Util.CheckForHandInfo(this.transform, ref this.handModel);
     if (this.Hand == null)
     {
         this.Hand = SG_Util.CheckForTrackedHand(this.transform);
     }
 }
Ejemplo n.º 3
0
 /// <summary> Check for Scripts relevant for this Animator </summary>
 protected virtual void CheckForScripts()
 {
     if (this.Hand == null)
     {
         this.Hand = SG_Util.CheckForTrackedHand(this.transform);
     }
     if (this.senseGlove == null && this.Hand != null)
     {
         this.senseGlove = this.Hand.hardware;
     }
 }