void Start() { FloatingTextController.Initalize(); sculpturePrefab = Resources.Load <GameObject>("Prefabs/Sculpture/SculpturePrefabs"); sculptMaterialPrefab = Resources.Load <GameObject>("Prefabs/Sculpture/Materials"); //데이터 Load if (System.IO.File.Exists(DataSaver.filePath)) { graver = DataSaver.LoadData <Graver>(DataSaver.filePath); RefreshDisplay(); } else { graver = new Graver(); graver.CurrentSculpture = Inventory.database.FetchSculptureItemById(0); graver.CurrentSculptMaterial = Inventory.database.FetchMaterialItemById(0); Directory.CreateDirectory(Application.persistentDataPath + "/Data"); } graver.CurrentSculpture.sprite = Inventory.database.FetchSculptureItemById(graver.CurrentSculpture.Id).sprite; animator = sprite.GetComponent <Animator>(); Invoke("WaitCommand", 1f); StartCoroutine(IncreaseHealth()); StartCoroutine(UpdateProgressBar()); }
// Use this for initialization void Start() { this.initalizeScore(0); this.addClickHandler(); m_Image = GetComponent <Image>(); this.applyUpgrade(stage1, 1); FloatingTextController.Initalize(); }
public void Start() { anim = this.GetComponent <Animator>(); FloatingTextController.Initalize(); shaker = EZCameraShake.CameraShaker.GetInstance("CameraTarget"); anim.SetBool("isClicked", false); particles.Stop(); }
// public Vector2 position; // Start is called before the first frame update void Start() { MusicSource.clip = Firing; MyTransform = this.transform; MyCameraTransform = Camera.main.transform; animator.SetBool("Walk", true); FloatingTextController.Initalize(); CritFloatingTextController.Initalize(); }