예제 #1
0
    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);
    }
예제 #2
0
    private void Update()
    {
        mTimer -= Time.deltaTime;

        if (mTimer < 0f)
        {
            mTimer = Random.Range(30, 120);

            DungeonCanvas dc = GameObject.FindObjectOfType <DungeonCanvas>();
            if (dc != null)
            {
                ShowDuckpic(dc);
            }
        }
    }