コード例 #1
0
        private void Awake()
        {
            speed         = initialSpeed;
            networkEntity = GetComponent <ServerNetworkEntity>();
            controller    = GetComponent <PlayerControllableEntity>();


            networkEntity.OnEnteredRoom += RegisterListeners;
            networkEntity.OnLeftRoom    += RemoveListeners;
        }
コード例 #2
0
 private void Awake()
 {
     networkEntity = GetComponent <ServerNetworkEntity>();
     networkEntity.OnEnteredRoom += AddListeners;
     networkEntity.OnLeftRoom    += RemoveListeners;
 }