//----- method ----- public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) { PlayableDirector = UnityUtility.GetComponent <PlayableDirector>(owner); var template = new LabelBehaviour(); var playable = ScriptPlayable <LabelBehaviour> .Create(graph, template); return(playable); }
/// <summary> /// Update this button to match the current event listening and display requirements. /// </summary> /// <remarks> /// This is called when some button state is changed or if the underlying virtual environment object changes /// and needs to be resynchronized. /// </remarks> protected void Update() { if (m_enabled) { EnableEvents(); } else { DisableEvents(); } DisplayBehaviour.UpdateAppearance(); LabelBehaviour.UpdateAppearance(); }