public void DrawLine(AwakeHandle handle) { foreach (var point in Points) { point.DrawLine(handle); } }
protected override void OnHide(bool forward) { moduleHome.DispatchEvent(Module_Home.EventSwitchCameraMode, Event_.Pop(CameraShowType.Home)); if (awakeHandle) { awakeHandle.Destroy(); } awakeHandle = null; }
public static AwakeHandle Create(AwakeType rType, GameObject rGameObject) { if (current) { if (CurrentType == rType) { current.Refresh(); return(current); } current.Destroy(); } CurrentType = rType; Util.SetLayer(rGameObject, awakeLayer); var handle = Create <AwakeHandle>(rType.ToString(), rGameObject); current = handle; return(handle); }
public void DrawLine(AwakeHandle handle) { if (!gameObject) { return; } if (lineRenderer == null) { lineRenderer = this.GetComponentDefault <LineRenderer>(); } var prevInfo = Module_Awake.PrevAwakeInfo(info); if (prevInfo && handle) { prev = handle.GetAwakeController(prevInfo.layer, prevInfo.index); } RefreshState(); }
private void Refresh() { awakeHandle = AwakeHandle.Create(currentType, (Level.current as Level_Home).awakeRoot.gameObject); }