2015-11-11 18:42:02 -05:00

31 lines
485 B
C#

using UnityEngine;
using System.Collections;
public class Patrolling : MonoBehaviour {
private float direction = 0.5f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
this.transform.Translate(direction, 0, 0);
}
void FixedUpdate() {
}
public void setDirection(float value) {
direction = value;
}
public float getDirection() {
return direction;
}
}