Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        // Rotate
        movement.Rotate();

        // Move
        movement.Move();

        // Shoot
        attack.Shoot();

        // Reload
        attack.ReloadInit();

        shootCooldown -= Time.deltaTime;
    }
Beispiel #2
0
 public void Rotate(float rotateDir)
 {
     bodyTransform = movement.Rotate(bodyTransform, rotateDir);
 }
Beispiel #3
0
 public void Rotate(float rotateDir)
 {
     parentTransform = movement.Rotate(parentTransform, rotateDir);
 }