Files
fatal-exception/Assets/BugMovement.cs
Jack Rus e7caa4ba0a minor
2020-01-31 21:21:14 -05:00

26 lines
467 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BugMovement : MonoBehaviour
{
public LayerMask layerMask;
public float speed;
private bool movingRight = true;
Rigidbody2D bugBody;
private Transform groundDetection;
// Update is called once per frame
void Update()
{
transform.Translate(Vector2.right * speed * Time.deltaTime);
}
void FixedUpdate()
{
}
}