// Start is called before the first frame update void Start() { uiManager_ = UIManager.Instance; flagManager_ = FlagManager.Instance; // If NPC still has dialogue, show it as interactible. UnityAction <FlagManager.EventFlag> checkStillInteractible = new UnityAction <FlagManager.EventFlag>((FlagManager.EventFlag flag) => { if (currTalkableNPC_ == null) { return; } currTalkableNPC_.SetInteractable(currTalkableNPC_.HasAvailableModel()); }); flagManager_.AddListener(checkStillInteractible); uiManager_.Player = this; isWeb = Application.platform != RuntimePlatform.WebGLPlayer; dialogueCompletedCb_ = () => { state_ = PlayerDialogueState.Inactive; return(true); }; }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; volumeManager_ = VolumeManager.Instance; flagManager_.AddListener(OnFlagFlipped); SetHasInteraction(false); animator_ = GetComponent <Animator>(); audioSource_ = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; eventFlagToAnimStrings_ = new Dictionary <FlagManager.EventFlag, Sprite>(); foreach (EventFlagSpritePair pair in eventFlagAnimPairs_) { eventFlagToAnimStrings_.Add(pair.EventFlag, pair.Sprite); } flagManager_.AddListener(OnFlagFlipped); }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; flagManager_.AddListener(OnFlagFlipped); prevPos = transform.position; renderers_ = GetComponentsInChildren <Renderer>(); foreach (Renderer r in renderers_) { r.enabled = false; } }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; flagManager_.AddListener(OnFlagFlipped); SetImagePanelShowOrHide(false); eventFlagToAnimBoolString_ = new Dictionary <FlagManager.EventFlag, Sprite>(); foreach (EventFlagImagePair pair in eventFlagAnimBoolStringPairs_) { eventFlagToAnimBoolString_.Add(pair.EventFlag, pair.Image); } }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; animator_ = GetComponent <Animator>(); eventFlagToAnimStrings_ = new Dictionary <FlagManager.EventFlag, string>(); foreach (EventFlagAnimStringPair pair in eventFlagAnimPairs_) { eventFlagToAnimStrings_.Add(pair.EventFlag, pair.AnimString); } flagManager_.AddListener(OnFlagFlipped); }
// Start is called before the first frame update void Start() { eventFlagToCamMovement_ = new Dictionary <FlagManager.EventFlag, PositionAndSize>(); foreach (EventFlagCameraMovementPair pair in eventFlagAnimPairs_) { eventFlagToCamMovement_.Add(pair.EventFlag, pair.PosAndZoom); } camera_ = GetComponent <Camera>(); flagManager_ = FlagManager.Instance; flagManager_.AddListener(OnFlagFlipped); }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; volumeManager_ = VolumeManager.Instance; flagManager_.AddListener(OnFlagFlipped); eventFlagToAnimBoolString_ = new Dictionary <FlagManager.EventFlag, AudioClip>(); foreach (EventFlagAudioClipPair pair in eventFlagAnimBoolStringPairs_) { eventFlagToAnimBoolString_.Add(pair.EventFlag, pair.AudioClip); } }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; animator_ = GetComponent <Animator>(); eventFlagToAnimBoolString_ = new Dictionary <FlagManager.EventFlag, string>(); foreach (EventFlagAnimBoolStringPair pair in eventFlagAnimBoolStringPairs_) { eventFlagToAnimBoolString_.Add(pair.EventFlag, pair.Sprite); } flagManager_.AddListener(OnFlagFlipped); prevPos = transform.position; }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; eventFlagToAnimStrings_ = new Dictionary <FlagManager.EventFlag, RendererAndSprite[]>(); foreach (EventFlagRendererSpritePair pair in eventFlagAnimPairs_) { RendererAndSprite[] array = new RendererAndSprite[pair.RendererAndSprites.Length]; pair.RendererAndSprites.CopyTo(array, 0); eventFlagToAnimStrings_.Add(pair.EventFlag, array); } flagManager_.AddListener(OnFlagFlipped); }
private void Start() { flagManager_ = FlagManager.Instance; #if UNITY_EDITOR if (soModel_ == null && soAssetName != "") { soModel_ = (DialogueModelSO)AssetDatabase. LoadAssetAtPath("Assets/DialogueModels/" + soAssetName + ".asset", typeof(DialogueModelSO)); } #endif if (interactbleText_ == null) { interactbleText_ = GetComponentInChildren <TextMeshPro>(); } CheckIfInteractible(0); flagManager_.AddListener(CheckIfInteractible); }
// Start is called before the first frame update void Start() { flagManager_ = FlagManager.Instance; flagManager_.AddListener(OnEventFlagCompleted); talkableNPC = GetComponent <TalkableNPC>(); }