protected override void OnInit(InteractiveObj obj) { MasterChara = obj as Character; Follow = obj.GetComponent <CharacterFollow>(); MasterChara.WillNotBeFind = true; VedioPlayer.OnVedioFinished.AddListener(() => { _start = true; MasterChara.Role.PlayAction("Hello", 0); Vector3 pos = ThirdPersonPlayer.Instance.transform.position; pos.y = MasterChara.transform.position.y; MasterChara.transform.LookAt(pos); }); }
void Awake() { characterFollowInstance = this; }