Hi
I'm implementing the following:
-----------------------------------------
#pragma strict
var delta : float = 10 * Time.deltaTime;
var position_new : float;
var position_current : float;
function Start () {
}
function Update () {
delta = 10 * Time.deltaTime;
//var position_current : float = transform.position.y;
position_current = transform.position.y;
Debug.Log("delta:"+delta);
Debug.Log("Platform Position: "+position_current);
transform.Translate(Vector3.down * Time.deltaTime*15, Space.World);
if (transform.position.y<-34.9999999)
{
position_new = position_current - Time.deltaTime*100 + 148;
transform.position = new Vector3(65, position_new , 1);
}
}
-----------------------------
I also have a separate empty Object that updates some variables for me.
The empty Object updates the position of a GameObject in the scene.
I would like to know how I can access the GameObject's position, or the emptyObjects variable (either or), from inside the script described above....
I think I've seen that I have to put in "using Playmaker.Plugin..." or something but...any help will be great...