示例#1
0
 // Use this for initialization
 void Start()
 {
     startTakeNumber(0);
     imageloader = GetComponent <ImageLoaderScript>();
     setBoundaries_mimicingMirrorRaster();
     Overlay.GetComponent <MeshRenderer>().enabled = false;
 }
 void Start()
 {
     wheelTransform = this.gameObject.GetComponent <Transform>() as Transform;
     wheelrigidBody = this.gameObject.GetComponent <Rigidbody>() as Rigidbody;
     imagescript    = this.gameObject.GetComponent <ImageLoaderScript>() as ImageLoaderScript;
     crateObjects   = GameObject.FindGameObjectsWithTag("Player");
     InvokeRepeating("AddTorqueImpluse", 1, 3);
 }
    void AddTorqueImpluse()
    {
        float val = Random.Range(-1, 1);

        wheelrigidBody.AddForceAtPosition(Vector3.right * 1000, Vector3.down, ForceMode.Impulse);
        Debug.Log("Invoke Called");
        foreach (GameObject value in crateObjects)
        {
            imagescript = value.GetComponent <ImageLoaderScript>() as ImageLoaderScript;
            imagescript.TriggerLoadImage();
        }
    }
示例#4
0
 // Use this for initialization
 void Start()
 {
     startTakeNumber(1);
     imageloader = GetComponent <ImageLoaderScript>();
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     startTakeNumber(1);
     imageloader = GetComponent <ImageLoaderScript>();
     setBoundaries_mimicingMirrorRaster();
 }