コード例 #1
0
 public override void ResolveCollision(MovableCollisionResponse other)
 {
     if (other.entity.GetComponent <BlockMovement>() != null)
     {
     }
     else
     {
         var transform = entity.GetComponent <Transform>();
         transform.position = transform.lastPosition;
     }
 }
コード例 #2
0
        public override void ResolveCollision(MovableCollisionResponse other)
        {
            var transform = entity.GetComponent <Transform>();

            transform.position = transform.lastPosition;
        }