예제 #1
0
 private void Awake()
 {
     spr = GetComponent <SpriteRenderer>();
     cs  = FindObjectOfType <CameraShake>();
     bb  = FindObjectOfType <MultiplayerBiomeBuilding>();
     bm  = FindObjectOfType <MultiplayerBuildingManager>();
 }
예제 #2
0
 //finds and sets other scripts to use public components in them
 private void Awake()
 {
     tm = FindObjectOfType <MultiplayerTurnManager>();
     rm = FindObjectOfType <MultiplayerResourceManager>();
     bb = FindObjectOfType <MultiplayerBiomeBuilding>();
     bm = FindObjectOfType <MultiplayerBuildingManager>();
     sr = FindObjectOfType <SyncResources>();
 }