private void Start() { game = FindObjectOfType <GameControllerScript>(); rb2d = GetComponent <Rigidbody2D>(); lootCollect = FindObjectOfType <LootCollectScript>(); pier = FindObjectOfType <PierScript>(); timer = FindObjectOfType <TimerScript>(); isLootable = false; ThrowGold(); SpawnSmoke(); }
void Start() { game = FindObjectOfType <GameControllerScript>(); lootCollect = FindObjectOfType <LootCollectScript>(); }