Ejemplo n.º 1
0
 public ExamplePhysBox(Instance instance, GalaxyVector3 position = null, GalaxyQuaternion rotation = null, NetEntityAutoSync syncType = NetEntityAutoSync.position_and_rotation) : base(instance, position, rotation, syncType)
 {
     //Задаем имя префаба соответствующего данному объекту
     prefabName = "ExampleBox";
 }
 public ExamplePhysCapsule(Instance instance, GalaxyVector3 position = null, GalaxyQuaternion rotation = null, NetEntityAutoSync syncType = NetEntityAutoSync.position_and_rotation) : base(instance, position, rotation, syncType)
 {
     prefabName = "ExampleCapsule";
 }
Ejemplo n.º 3
0
        private int randTime;                               // время ожидания шага


        public ExampleRandomMove(Instance instance, GalaxyVector3 position = null, GalaxyQuaternion rotation = null, NetEntityAutoSync syncType = NetEntityAutoSync.position_and_rotation) : base(instance, position, rotation, syncType)
        {
            prefabName = "Move"; // задаем имя, что бы клиент знал какой префаб отображать
        }