public ScenerySpawnPoint(Scenery scenery, Vector3 position, Quaternion rotation) { this.scenery_id = scenery.id; this.position = position; this.rotation = rotation; this.id = this.Create(); }
public void Init(Scenery scenery) { // Update Gameobject Fields System.Reflection.FieldInfo[] fields = this.GetType().GetFields(); foreach (System.Reflection.FieldInfo field in fields) { field.SetValue(scenery, field.GetValue(this)); } Debug.Log(scenery.Size); // Set Scenery Scale scenery.transform.localScale = scenery.Size; }