private void Awake() { spr = GetComponent <SpriteRenderer>(); cs = FindObjectOfType <CameraShake>(); bb = FindObjectOfType <MultiplayerBiomeBuilding>(); bm = FindObjectOfType <MultiplayerBuildingManager>(); }
//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>(); }