예제 #1
0
 void Start()
 {
     player = GameObject.FindWithTag("Player");
     print(player);
     manager = player.GetComponent <coinManager>();
     print(manager);
     aSource = player.GetComponent <AudioSource>();
 }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        string thisslot = PlayerPrefs.GetString("ThisSlot");

        score = PlayerPrefs.GetInt(thisslot + "coin");
    }