本文整理汇总了C#中UnityEngine.UI.Windows.Plugins.Flow.Data.IsEnabled方法的典型用法代码示例。如果您正苦于以下问题:C# Data.IsEnabled方法的具体用法?C# Data.IsEnabled怎么用?C# Data.IsEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UnityEngine.UI.Windows.Plugins.Flow.Data
的用法示例。
在下文中一共展示了Data.IsEnabled方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DrawTransitionChooser
public void DrawTransitionChooser(AttachItem attach, FD.FlowWindow fromWindow, FD.FlowWindow toWindow, bool doubleSided) {
if (this.drawWindowContent == false) return;
if (toWindow.IsEnabled() == false) return;
if (toWindow.IsContainer() == true) return;
var factor = 0.5f;
var transitionsContainer = fromWindow;
var namePrefix = string.Empty;
if (fromWindow.IsSmall() == true &&
fromWindow.IsABTest() == true) {
// is ABTest
//Debug.Log(fromWindow.id + " => " + toWindow.id + " :: " + attach.index + " :: " + doubleSided);
transitionsContainer = FlowSystem.GetWindow(fromWindow.abTests.sourceWindowId);
if (transitionsContainer == null) return;
namePrefix = string.Format("Variant{0}", attach.index.ToString());
factor = 0.2f;
} else {
if (toWindow.IsSmall() == true) {
if (toWindow.IsFunction() == false) return;
}
}
if (FlowSystem.GetData().modeLayer == ModeLayer.Audio) {
if (FlowSystem.GetData().HasView(FlowView.AudioTransitions) == false) return;
} else {
if (FlowSystem.GetData().HasView(FlowView.VideoTransitions) == false) return;
}
const float size = 32f;
const float offset = size * 0.5f + 5f;
Vector2 centerOffset = Flow.OnDrawNodeCurveOffset(this, attach, fromWindow, toWindow, doubleSided);
if (doubleSided == true) {
var q = Quaternion.LookRotation(toWindow.rect.center - fromWindow.rect.center, Vector3.back);
var attachRevert = FlowSystem.GetAttachItem(toWindow.id, fromWindow.id);
this.DrawTransitionChooser(attachRevert, toWindow, toWindow, fromWindow, centerOffset, q * Vector2.left * offset, size, factor, namePrefix);
this.DrawTransitionChooser(attach, fromWindow, fromWindow, toWindow, centerOffset, q * Vector2.right * offset, size, factor, namePrefix);
} else {
this.DrawTransitionChooser(attach, transitionsContainer, fromWindow, toWindow, centerOffset, Vector2.zero, size, factor, namePrefix);
}
}
示例2: DrawTransitionChooser
public void DrawTransitionChooser(FD.FlowWindow.AttachItem attach, FD.FlowWindow fromWindow, FD.FlowWindow toWindow, bool doubleSided) {
if (toWindow.IsEnabled() == false) return;
if (toWindow.IsContainer() == true) return;
if (toWindow.IsSmall() == true) {
if (toWindow.IsFunction() == false) return;
}
const float size = 32f;
const float offset = size * 0.5f + 5f;
if (doubleSided == true) {
var q = Quaternion.LookRotation(toWindow.rect.center - fromWindow.rect.center, Vector3.back);
var attachRevert = FlowSystem.GetAttachItem(toWindow.id, fromWindow.id);
this.DrawTransitionChooser(attachRevert, toWindow, fromWindow, q * Vector2.left * offset, size);
this.DrawTransitionChooser(attach, fromWindow, toWindow, q * Vector2.right * offset, size);
} else {
this.DrawTransitionChooser(attach, fromWindow, toWindow, Vector2.zero, size);
}
}