Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     skSP            = GetComponent <skSpawner> ();
     ui              = uiCanvas.GetComponent <UInterface_Assembly> ();
     pRef            = Camera.main.GetComponent <PartsReference> ();
     playerInventory = Camera.main.GetComponent <InventoryManager> ().playerInventory;
     aS              = GetComponent <AudioSource> ();
     selectPosition  = transform.position;
     mementoPosition = mementoPositionMarker.position;
 }
Beispiel #2
0
	// Use this for initialization
	void Start () {
		pRef = Camera.main.GetComponent<PartsReference> ();
		//SpawnFromParts (Random.Range(0,3), Random.Range(0,3), Random.Range(0,3));
	}
Beispiel #3
0
 void Start()
 {
     pRef = Camera.main.GetComponent <PartsReference> ();
 }