void Update() { TimeSpan timeSpan = DateTime.UtcNow - appleData.GetCreateDateTime(); //作成された日時と現在の時間の差 if (timeSpan.TotalSeconds >= appleData.remainingTime) { //収穫可能 canHarvest = true; } else { //まだ収穫できない //スケール変更 float scale = finalScale * ((int)timeSpan.TotalSeconds / (float)appleData.remainingTime); this.GetComponent <RectTransform>().localScale = new Vector3(scale, scale, 1); } }