So I want a cube to be bigger when it collides with some objects, that works fine, for that I’m using
cube.transform.localScale.x+=new Vector3(1,0,1);
but the I want to compare the size of that cube with other cubes in the world so that if the cube is bigger then it can attack the other cubes, if not the other cubes can attack the cube, does that make sense?
What do you mean by saying bigger? Would a scale of (1/1/1) be bigger than (0.5/1/2)? The < operator is not overloaded by [Vector3][1] [1]: http://docs.unity3d.com/Documentation/ScriptReference/Vector3.html
– robhuhn