コード例 #1
0
    void OnGetUserStateRegular(NetMsgDef msg)
    {
        TSCGetUserStateRegular userState = TSCGetUserStateRegular.ParseFrom(msg.mBtsData);

        userPackage.SetPlayerState(userState);
        SendEvent("RefreshUserState");
    }
コード例 #2
0
ファイル: UserPackage.cs プロジェクト: Wen1995/Project60D
 public void SetPlayerState(TSCGetUserStateRegular state)
 {
     blood     = state.Blood;
     hunger    = state.Food;
     thirst    = state.Water;
     health    = state.Health;
     mood      = state.Mood;
     attack    = state.Attack;
     defense   = state.Defense;
     agile     = state.Agile;
     speed     = state.Speed;
     intellect = state.Intellect;
 }
コード例 #3
0
ファイル: UserPackage.cs プロジェクト: Wen1995/Project60D
 public void SetPlayerState(TSCGetUserStateRegular userState)
 {
     playerState.SetPlayerState(userState);
     SetPersonContribution(userState.Contribution);
 }