public GameObject enemyfireball;
void Update()
{
enemyfireball.transform.position += -transform.up * Time.deltaTime * 5f;
}
I am not sure how to make this work in a different way, the object just won't move. For reference this is for a 2D game.