예제 #1
0
 public ScenerySpawnPoint(Scenery scenery, Vector3 position, Quaternion rotation)
 {
     this.scenery_id = scenery.id;
     this.position   = position;
     this.rotation   = rotation;
     this.id         = this.Create();
 }
예제 #2
0
        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;
        }