Пример #1
0
    private void Update()
    {
        var input = _currentInput.GetInput();

        _move?.Move(input);
        _attack?.Attack(input);
        _find?.FindTarget(input);
    }
Пример #2
0
 public void Move(float horizontal, float vertical, float deltaTime)
 {
     _move.Move(horizontal, vertical, deltaTime);
 }
Пример #3
0
 public override void MyUpdate()
 {
     _unit.Move();
 }
Пример #4
0
 public void Move()
 {
     moveBehaviour.Move();
 }
 public void Move()       // <-- Method to call the abstracted Behavior.
 {
     MovementType.Move(); // <-- Behavior being called.
 }
Пример #6
0
 public void Execute(float deltaTime)
 {
     _move.Move(_target.position);
 }
 void Update()
 {
     iMover.Move(controller);
 }
Пример #8
0
 static void ShowHowMove(IMove obj)
 {
     obj.Move();
 }
Пример #9
0
 private void Update()
 {
     _paddle?.Move(input.Value);
 }
Пример #10
0
 public void Move()
 {
     _move.Move();
 }
Пример #11
0
 public void Go()
 {
     move.Move();
 }
Пример #12
0
 private void Update()
 {
     IMover.Move(controller);
 }
Пример #13
0
 private void Update()
 {
     _moveMech.CurrentSpeedState = Movement.SpeedState.WALK;
     _moveMech.Move(transform.right);
 }
Пример #14
0
 public void Move(float horizontal, float vertical, float deltaTime)
 {
     _moveImplementation.Move(horizontal, vertical, deltaTime);
 }
Пример #15
0
 /// <summary>
 /// Person moving
 /// </summary>
 public void Move()
 {
     Console.Write("{0} is moving on ", name);
     move.Move();
 }
Пример #16
0
 private void Update() => _movement.Move(transform, _weapon.GetBulletSpeed());
Пример #17
0
 void MoveAnimimal(IMove move)
 {
     move.Move();
 }
Пример #18
0
 //Standard method used to move object
 public void Move(GameObject go, bool left, bool right, bool up, bool down, int gameWidth, int gameHeight)
 {
     go_m.Move(go, left, right, up, down, gameWidth, gameHeight);
 }
Пример #19
0
 public void PerformMove()
 {
     mover.Move(this);
 }
Пример #20
0
 public void Update(float time)
 {
     characterController.Move(controller.InputInfo.MovementPosX, controller.InputInfo.MovementPosY, movementSpeed, time);
 }
Пример #21
0
    public void CreateEnemy(List <ICell> cells, GameObject go)
    {
        IMove move = Instantiate(go, SpawnPoint.position, Quaternion.identity).GetComponent <IMove>();

        move.Move(cells);
    }
Пример #22
0
 public void Move(IMove imover)
 {
     imover.Move(this, ButtonsTraversed.Last());
 }
Пример #23
0
        // private void Control()
        // {
        //     //TODO: Класс управления для считывания нажаний клавиш в графическом движке
        //     movement.AccelerationUp = Input.GetAxis("Vertical");
        //     movement.AccelerationRight = Input.GetAxis("Horizontal");
        //     if(Input.GetButton("Run")) movement.Run(states.SpeedUp());
        // }

        public void Action()
        {
            movement.Move(0);
            // Control();
        }