コード例 #1
0
ファイル: SpawnItem.cs プロジェクト: dionupton/HeX-Scripts
 /// <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;
 }
コード例 #2
0
ファイル: SpawnItem.cs プロジェクト: dionupton/HeX-Scripts
 /// <summary>
 /// Starts this instance.
 /// </summary>
 void Start()
 {
     transform.root.LookAt(GameObject.FindGameObjectWithTag("PlayerTarget").transform);
     scaleCurves = GetComponent <RFX4_ScaleCurves>();
     time        = scaleCurves.GraphTimeMultiplier / 2;
 }