Esempio n. 1
0
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            netPort = parent.TryGetComp<VoidNetPort>();
            //注册待机耗能
            if (netPort != null && registerToNetPort)
                netPort.RegisterToNetPort(this);


            base.PostSpawnSetup(respawningAfterLoad);
        }
Esempio n. 2
0
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            compVoidNetPort = parent.TryGetComp <VoidNetPort>();

            base.PostSpawnSetup(respawningAfterLoad);
        }