//----------------------------------------------------------------------------------------------------------------------------------------- // Monobehaviour //Load Resources before Start() function is called protected virtual void Awake() { if (this.Hand == null) { this.Hand = SG_Util.CheckForTrackedHand(this.transform); } }
/// <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); } }
/// <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; } }