Esempio n. 1
0
        private static IEnumerator EnableXft(XffectComponent xft)
        {
            yield return(null);

            var eft = xft.GetComponentsInChildren <EffectLayer>();

            foreach (var e in eft)
            {
                e.InitCollision();
            }
            xft.gameObject.SetActive(true);
            xft.enabled = true;
            //重置CollisionPlane
            //xft.Reset();
        }