Esempio n. 1
0
    private void Start()
    {
        game        = FindObjectOfType <GameControllerScript>();
        rb2d        = GetComponent <Rigidbody2D>();
        lootCollect = FindObjectOfType <LootCollectScript>();
        pier        = FindObjectOfType <PierScript>();
        timer       = FindObjectOfType <TimerScript>();

        isLootable = false;
        ThrowGold();
        SpawnSmoke();
    }
Esempio n. 2
0
 void Start()
 {
     game        = FindObjectOfType <GameControllerScript>();
     lootCollect = FindObjectOfType <LootCollectScript>();
 }