From f570e9ab7968f90ec1187c1fe37a8a3d61538a12 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Thu, 11 Sep 2014 13:30:31 +0100 Subject: [PATCH] Added hideSequenceObjects flag --- Assets/Example/Scenes/Example.unity | Bin 124308 -> 123692 bytes .../FungusScript/Editor/FungusScriptEditor.cs | 6 ++++++ .../FungusScript/Scripts/FungusScript.cs | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/Assets/Example/Scenes/Example.unity b/Assets/Example/Scenes/Example.unity index caf5b82c853d69463b2dde93657335e6cecd53b8..9a248536273bdb5cc8c7025e3593f54bd3e95897 100644 GIT binary patch delta 4215 zcmY+`dr(x@9l-H(B1XuV2(eZ)IFgC&>>q84(`1SjBZ($LHFd3`P%(mlEIQ4?`8F^iZKQ*E)YkeZZ!&%NjBxsI1}_p`rq ze!qLpx%ckobA9TX`@{>Gog!q%4}=hLoO=()pB#8(>b)L$Wa2{?WiUQ9=1BO7ie5vr zG8dMl3SV(y(d44V%Ze5j6iu8px2T|GsgQL2VNm|QfAFcH1LV`e_e!1$9%$+tyj?ON zc%HT{F7c7V{E~bTOW^Qe{`g_Rnye8OvB?dw$#U-yIi#U(lKX7> zFZ($C_|*}Sp9(R9t}2f@nz59TLgaG(-=3bHCA2MA4K{`I7<~*L7)qzd!cYt#wa1e^mK|zeDv(-&ga|%4#K>n-2)EB>M=j#{Y{T| z~C58O3y9E3rx}N`C$b(f{S|j}gxcQOdbf^>?sxEET(>2ONMkVk*gPZQsQ_ zF9^W}ioa?bi1{#cX8KN@KBfuFH*!2006k-b*Z@ZL@fg;KP2lrgJ>Y_&`(KJ3D?}0I z6u1!cV`@p9XHa{FxA3jQEGP ztCxCZSJB% z{_(X~F`u2OuD}u}x|gX^#bIiyztsg+sW`6?N!WFLZ29qYZz`ttmXqU8{_WmItcv}2 zKgkDR`Xpy(+WX-Y){2!-$vvIqw2GVTPTY*uV~i=j(Qz%9x?HoEy!?~iWUNXT6HpaR z8TREbYC-dgv#><&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bDbIMlFl+=bc8%oWRl|HMAr(g4$NqZ$c32eg%2 z3*r^IF3Ui~OI+oZ3Zdd>oi@57zOSZxy-!X5kvZ}Yi8eqIWu8FuZnElt*{>ou)Smg`^%EsG)wn}r4 zuZqSyU@llD;^gyvC#(`^uH9)3Ei`VLiNf*>d;*&c$HX0f6((v z@M^*qO4D7bc$L3}DiKb_l#EkqG0n&6NHNVN=Dk-;WfPwpkD=;!@ZvH5P}WAh@^}1~ zA-`VuAOA(D+g8yFk-WvWN#8S6{^P$Z^`^BHsh1q4$b4MMFySyI0_qOaE}W*-Pz_EOYG|jK^t4);{^&YN!$(`|C>N)DbyQ$PcysEh zb)4>NLSNA*snXoF){_*EsQV{rI{EbHTj)p6^6zKHWW||(*W>T`cf(Qo`WDL4-F(A8 zZ^48{>C;-ViKDzlt+aEj9IWjRMcsd#OY3&Lg>8jtWhY_x~Rrn=A|yoca$FG=Y#4Q=IIDd<{H28Q#ViB z>2ow}rmf?=k+!IABW*{zY5EiGuP~OP-{_|8h+Oq&B-kk1=pJ6IynxGlDBpbbpodx! z)cgr8HS2gnFEyGUb@Wn+S>^E;WR<^vfy&KKpSws2XjpU+Gi$0xQaUb@BZR{Aho8~U z#`1dRDdp9q$6ThoaQ-Em3)7EXrU)$U variables = new List(); void Start() @@ -132,6 +134,15 @@ namespace Fungus } } } + + public void UpdateHideFlags() + { + Sequence[] sequences = GetComponentsInChildren(); + foreach (Sequence sequence in sequences) + { + sequence.gameObject.hideFlags = hideSequenceObjects ? HideFlags.HideInHierarchy : HideFlags.None; + } + } } } \ No newline at end of file