예제 #1
0
        private bool ExtractLook(Entity target)
        {
            var tr = target.Get <TransformComponent>();

            _lookTr.Set(tr);
            return(tr != null);
        }
예제 #2
0
 public void Register(Entity entity, Dictionary <System.Type, ComponentReference> list)
 {
     Entity = entity;
     Model.Set(entity, list);
     Label.Set(entity, list);
     Rb.Set(entity, list);
     _position.Set(entity, list);
     _rotation.Set(entity, list);
 }
예제 #3
0
 public void Register(Entity entity, Dictionary <System.Type, ComponentReference> list)
 {
     Entity = entity;
     Rb.Set(entity, list);
     MoveSpeed.Set(entity, list);
     RotationSpeed.Set(entity, list);
     Target.Set(entity, list);
     Mover.Set(entity, list);
 }
예제 #4
0
 public void SetContainer(IEntityContainer container)
 {
     if (container == null)
     {
         _inventory.Clear();
     }
     else
     {
         _inventory.Set(container.Owner);
     }
 }
예제 #5
0
 public static void Assign(PlayerInputComponent component) {
     _local.Set(component);
 }
예제 #6
0
 public void SetMoveTarget(SetMoveTarget arg)
 {
     _targetV3 = arg.V3;
     _targetTr.Set(arg.Tr);
 }