system
1
This code:
`
var yPosition : float;
function Awake(){
yPosition = transform.position.y;
}
function Update () {
yPosition = yPosition + .01;
transform.position.y = yPosition;
}
`
Works with an empty game object but not with a point light. Why?
system
2
Oh. It actually helps if you save your code in MonoDevelop before running your project. Sorry for wasting everybody’s time.
system
3
Yeoldsnake, Thanks for pointing that out to me.