// Start is called before the first frame update
 void Start()
 {
     collisionHands = GetComponent <CollisionHands>();
     MinScales.Add("chair", new Vector3(2, 3, 2));
     MinScales.Add("bed", new Vector3(2, 2.5f, 2.5f));
     MinScales.Add("vase", new Vector3(17, 17, 15));
     MinScales.Add("table", new Vector3(0.8f, 0.8f, 0.8f));
     MinScales.Add("tv", new Vector3(1.5f, 1.5f, 0.5f));
     MinScales.Add("bookcase", new Vector3(30, 30, 10));
     MinScales.Add("sofa", new Vector3(2, 2, 1.5f));
     MaxScales.Add("chair", new Vector3(9.5f, 4, 2.8f));
     MaxScales.Add("bed", new Vector3(4, 5, 5));
     MaxScales.Add("vase", new Vector3(40, 40, 120));
     MaxScales.Add("table", new Vector3(4, 4, 3));
     MaxScales.Add("tv", new Vector3(3, 3, 5));
     MaxScales.Add("bookcase", new Vector3(100, 50, 50));
     MaxScales.Add("sofa", new Vector3(3.5f, 3.5f, 4f));
 }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     collision = GetComponent <CollisionHands>();
     scale     = GetComponent <CollisionHands>();
     camera    = GameObject.FindGameObjectWithTag("MainCamera");
 }
 // Start is called before the first frame update
 void Start()
 {
     collisionHands = GetComponent <CollisionHands>();
 }