I’ve found myself at an issue that I can’t seem to figure out the solution to. Time.Deltatime, which worked normally when I used it with another script, is now barely moving an object! I have it set so when a ball enters an area, the object starts to move up and keeps moving up.
However, right now, it starts moving… And then stops before the player can reach it. What could cause such an issue?
using UnityEngine;
using System.Collections;
public class victoryballcell : MonoBehaviour {
// Use this for initialization
void Start () {
}
void OnTriggerEnter(Collider col){
if (col.gameObject.tag == "ball") {
transform.position += Vector3.up *Time.deltaTime;
}
}
// Update is called once per frame
void Update () {
}
}