/// <summary> /// Sets up the portal, looking at the players location. /// </summary> public void setUp() { transform.root.LookAt(GameObject.FindGameObjectWithTag("PlayerTarget").transform); scaleCurves = GetComponent <RFX4_ScaleCurves>(); time = scaleCurves.GraphTimeMultiplier / 2; objFloat = false; }
/// <summary> /// Starts this instance. /// </summary> void Start() { transform.root.LookAt(GameObject.FindGameObjectWithTag("PlayerTarget").transform); scaleCurves = GetComponent <RFX4_ScaleCurves>(); time = scaleCurves.GraphTimeMultiplier / 2; }