Here's my Class:
public class Mark {
public GameObject InstanciatedObject;
public Vector3 ControllerPosition;
public Quaternion ControllerRotation;
public void CreateMark(Mark m, GameObject o, Vector3 p, Quaternion r)
{
m.InstanciatedObject= o;
m.ControllerPosition= p;
m.ControllerRotation = r;
}
}
And I want to use the following lines in another script:
Mark m = new Mark();
m.CreateMark(m, ControllerObject, GetControllerPosition(), GetControllerRotation());
The problem here is that I don't want to create the name of the object manually. I want to create, for instance, m1, m2, m3, etc.