Пример #1
0
        private void Awake()
        {
            doorMasterController = GetComponent <DoorMasterController>();
            boltsModule          = GetComponentInChildren <BoltsModule>();
            weldModule           = GetComponentInChildren <WeldModule>();

            if (CustomNetworkManager.IsServer == false)
            {
                return;
            }

            integrity = GetComponent <Integrity>();
            integrity.OnWillDestroyServer.AddListener(WhenDestroyed);
        }
Пример #2
0
 private void Awake()
 {
     master = GetComponent <DoorMasterController>();
 }