예제 #1
0
 // Use this for initialization
 void Start()
 {
     rotate  = false; // set translate mode
     isBelow = false;
     rb      = GetComponent <Rigidbody>();
     strobe  = GetComponent <StrobeSelected>();
 }
예제 #2
0
 void Start()
 {
     isGrabbed          = false;
     isBelow            = false;
     rb                 = transform.GetComponent <Rigidbody>();
     strobe             = transform.GetComponent <StrobeSelected>();
     strobe.strobeColor = Color.grey;
 }
예제 #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;
 }