public override void OnEvent(LightEffigy evnt) { if (evnt.Effigy) { evnt.Effigy.GetState <IBuildingEffigyState>().Lit = true; } }
private void lightEffigy() { if (BoltNetwork.isRunning) { LightEffigy lightEffigy = LightEffigy.Create(GlobalTargets.OnlyServer); lightEffigy.Effigy = base.GetComponentInParent <BoltEntity>(); lightEffigy.Send(); } else { this.lightEffigyReal(); } }
public override void OnEvent(LightEffigy evnt) { if (evnt.Effigy) { evnt.Effigy.GetState<IBuildingEffigyState>().Lit = true; } }