void Start() { SerializablePlayerData playerData = SaveMgr.LoadPlayerData(); food1txt.text = playerData.foodNum[1].ToString(); food2txt.text = playerData.foodNum[2].ToString(); food3txt.text = playerData.foodNum[3].ToString(); piroGaugeBar = FindObjectOfType <PiroGaugeBar>(); food1Image = food1.GetComponent <Image>(); food2Image = food2.GetComponent <Image>(); food3Image = food3.GetComponent <Image>(); }
// Start is called before the first frame update void Start() { myImage = GetComponent <Image>(); myImage.fillAmount = 0f; piroGaugeBar = FindObjectOfType <PiroGaugeBar>(); }