Esempio n. 1
0
        protected void Init()
        {
            ModelData info = new ModelData();

            info.triangles = new List <int>(sourceMesh.triangles);
            info.vertices  = new List <Vector3>(sourceMesh.vertices);
            info.normals   = new List <Vector3>(sourceMesh.normals);
            info.uvs       = new List <Vector2>(sourceMesh.uv);
            ModelInfos.Add(info);
        }
Esempio n. 2
0
 public PlayerInfos(PlayerControls controls, int slot_id)
 {
     boatId          = (slot_id + 1) % 2;//TODO
     this.modelInfos = new ModelInfos(slot_id);
     this.controls   = controls;
 }