public PortraitPresetData GetPresetData() { if (__presetData != null) { return(__presetData); } __presetData = GetComponent <PortraitPresetData>(); return(__presetData); }
public static void PlayPortraitAnim(GameObject game) { Fungus.DialogPortrait dialogPortrait = game.GetComponent <Fungus.DialogPortrait>(); Fungus.PortraitPresetData portraitPresetData = dialogPortrait.GetPresetData(); if (portraitPresetData.animPresets.Length > 0) { Fungus.PortraitAnimClip[] clips = portraitPresetData.animPresets[1].clips; dialogPortrait.PlayAnim(clips); dialogPortrait.CurAlpha = 1; } UnityEngine.UI.GraphicRaycaster ray = game.GetComponent <UnityEngine.UI.GraphicRaycaster>(); if (ray != null) { ray.enabled = false; } }