示例#1
0
    public void Start()
    {
        Highlight = Instantiate(Loc.GetCreatureController().HightlightPrefab, transform);
        Highlight.gameObject.SetActive(false);
        Text = GetComponent <TextMeshPro>();
        if (Text == null)
        {
            Text = GetComponentInChildren <TextMeshPro>();
        }

        Animator = GetComponent <Animator>();
        if (Animator == null)
        {
            Animator = GetComponentInChildren <Animator>();
        }

        Data.Start();
    }