// Start is called before the first frame update void Start() { DNALoad = GameObject.FindGameObjectWithTag("PlayerData").GetComponent <DNASave>(); carrier = GameObject.FindGameObjectWithTag("PlayerData").GetComponent <Carrier>(); DNAs = DNALoad.LoadDNAData("DNA"); DNALoad.DeleteDNAData("DNA"); mixingData = GetComponent <DNAMixingData>(); SpawnDNAs(); }
// Start is called before the first frame update void Awake() { amount = initialAmount; DNASave = GetComponent <DNASave>(); playerData = GetComponent <PlayerData>(); }