Esempio n. 1
0
        protected override void OnShapeEnter(Shape shape, Vector3 initialVelocity)
        {
            Vector3 velocity = CalculateVelocity(initialVelocity, enterDirection);

            if (velocity == Vector3.zero)
            {
                system.Remove(shape.transform);
            }
            else
            {
                system.UpdateData(shape.transform, velocity);
            }
        }
 protected override void OnShapeDespawned(Shape despawned)
 {
     moveSystem.Remove(despawned.transform);
 }