Ejemplo n.º 1
0
 public void AddGameObjectClassic(int addCount)
 {
     for (int i = 0; i < addCount; ++i)
     {
         var go = Instantiate(moveClassic);
         go.transform.position = randomInitPosLeft();
         go.transform.rotation = Quaternion.Euler(0, 0, 0);
         if (willRender)
         {
             var mr = go.AddComponent <MeshRenderer>();
             mr.material = renderMat;
             var mesh = go.AddComponent <MeshFilter>();
             mesh.mesh = renderMesh;
         }
     }
     fps.AddElementCount(addCount);
 }