void ShowDuckpic(DungeonCanvas canvas) { CharacterModel model = GameObject.Find("CharacterImageCapture").GetComponentInChildren <CharacterModel>(); model.transform.localPosition = Vector3.zero; model.ChangeModel(Game.instance.followerData); canvas.duckpicUI.gameObject.SetActive(true); }
private void Update() { mTimer -= Time.deltaTime; if (mTimer < 0f) { mTimer = Random.Range(30, 120); DungeonCanvas dc = GameObject.FindObjectOfType <DungeonCanvas>(); if (dc != null) { ShowDuckpic(dc); } } }