public void Init() { _amy = UtilFunction.ResourceLoad(AMY_PATH); _amyController = _amy.GetComponent <AmyController>(); _amyStoryProcess = gameObject.AddComponent <AmyStoryProcess>(); _amyStoryProcess.Init(); _amyAudioController = gameObject.AddComponent <NPC_AudioController>(); _amyAudioController.Init(_amy.GetComponent <AudioSource>()); EnterTask(_amyStoryProcess.amyStoryGroup.storyDict[_amyStoryProcess.curStoryID]); }
public void Init() { _lizzyStoryProcess = gameObject.AddComponent <LizzyStoryProcess>(); _lizzyStoryProcess.Init(); _lizzy = UtilFunction.ResourceLoad(LIZZY_PATH); _lizzyController = _lizzy.GetComponent <LizzyController>(); _lizzyController.Init(); _lizzyAudioController = gameObject.AddComponent <NPC_AudioController>(); _lizzyAudioController.Init(lizzy.GetComponent <AudioSource>()); RunStory(); }
public void Init() { _george = UtilFunction.ResourceLoad(GEORGE_PATH); _georgeController = _george.GetComponent <GeorgeController>(); _georgeController.Init(); _georgeStoryProcess = gameObject.AddComponent <GeorgeStoryProcess>(); _georgeStoryProcess.Init(); _georgeAudioController = gameObject.AddComponent <NPC_AudioController>(); _georgeAudioController.Init(george.GetComponent <AudioSource>()); //TEST StartTask(); }
public void Init() { humanState = UtilFunction.ResourceLoad(HUMAN_JAYCEE_PATH); //monsterState = UtilFunction.ResourceLoad(MONSTER_JAYCEE_PATH); //jayceeMonsterController = monsterState.GetComponent<JayceeMonsterController>(); _jayceeHumanController = humanState.GetComponent <JayceeHumanController>(); jayceeStoryProcess = gameObject.AddComponent <JayceeStoryProcess>(); jayceeStoryProcess.Init(); _jayceeAudioController = gameObject.AddComponent <NPC_AudioController>(); _jayceeAudioController.Init(humanState.GetComponent <AudioSource>()); RunTask(); }
public void Init() { _rick = UtilFunction.ResourceLoad(PREFAB_PATH); _rickController = _rick.GetComponent <RickController>(); _rickController.Init(); _rickStoryRrocess = gameObject.AddComponent <RickStoryProcess>(); _rickStoryRrocess.Init(); _rickAudioController = gameObject.AddComponent <NPC_AudioController>(); _rickAudioController.Init(_rick.GetComponent <AudioSource>()); RunTask(); }
public void Init() { _emily = UtilFunction.ResourceLoad(EMILY_PATH); _emilyController = _emily.GetComponent <EmilyController>(); _emilyController.Init(); _emilyStoryProcess = gameObject.AddComponent <EmilyStoryProcess>(); _emilyStoryProcess.Init(); _emilyAudioController = gameObject.AddComponent <NPC_AudioController>(); _emilyAudioController.Init(emily.GetComponent <AudioSource>()); //FinishTo(1013); //test直接出现在平民中间 RunStory(); }
public void Init() { _melissa = UtilFunction.ResourceLoad(MELISSA_PATH); _melissa.name = "melissa"; _melissaController = _melissa.GetComponent <MelissaController>(); _melissaController.Init(); _melissaTaskProcess = gameObject.AddComponent <MelissaTaskProcess>(); _melissaTaskProcess.Init(); _melissaAudioController = gameObject.AddComponent <NPC_AudioController>(); _melissaAudioController.Init(melissa.GetComponent <AudioSource>()); RunTask(); canUpdate = true; }
public void Init() { _civiliansMan = UtilFunction.ResourceLoad(CIVILIANS_MAN_PATH); _civiliansController = _civiliansMan.GetComponent <CiviliansController>(); _civiliansController.Init(); //_civiliansWoman = UtilFunction.ResourceLoad(CIVILIANS_WOMAN_PATH); //_civiliansWomanController = _civiliansWoman.GetComponent<CiviliansWomanController>(); //_civiliansWomanController.Init(); _civiliansStoryProcess = gameObject.AddComponent <CiviliansStoryProcess>(); _civiliansStoryProcess.Init(); _civiliansAudioController = gameObject.AddComponent <NPC_AudioController>(); _civiliansAudioController.Init(_civiliansMan.GetComponent <AudioSource>()); RunStory(); }
private void Start() { npc = GetComponent <NPC_AudioController>(); npc.Init(audioSource); }