Пример #1
0
 void Start()
 {
     physicsCollider   = GetComponent <Collider>();
     myRigidbody       = GetComponent <Rigidbody>();
     standardOrbScript = GetComponent <StandardOrb>();
     holdableScript    = GetComponent <Holdable>();
 }
Пример #2
0
 void Start()
 {
     this.orbScript      = GetComponent <StandardOrb>();
     this.holdableScript = GetComponent <Holdable>();
     if (!holdableScript.IsFree)
     {
         orbScript.chargeTime = 0;
     }
     this.hintLine         = transform.Find("Hint Flare").GetComponent <LineRenderer>();
     this.hintLine.enabled = false;
 }