// Use this for initialization
 void Start()
 {
     rotate  = false; // set translate mode
     isBelow = false;
     rb      = GetComponent <Rigidbody>();
     strobe  = GetComponent <StrobeSelected>();
 }
Exemple #2
0
 void Start()
 {
     isGrabbed          = false;
     isBelow            = false;
     rb                 = transform.GetComponent <Rigidbody>();
     strobe             = transform.GetComponent <StrobeSelected>();
     strobe.strobeColor = Color.grey;
 }
Exemple #3
0
 void Start()
 {
     selected           = false;
     beyond             = false;
     cubeOriginal       = new Vector3(transform.position.x, transform.position.y, transform.position.z);
     camPre             = player.transform.rotation.x;
     strobe             = transform.GetComponent <StrobeSelected>();
     strobe.strobeColor = Color.grey;
 }