PlayerCommon.SetTeam C# (CSharp) Method

SetTeam() public method

public SetTeam ( int tid ) : void
tid int
return void
    public void SetTeam(int tid)
    {
        team = tid;
    }

Usage Example

コード例 #1
0
ファイル: PlayerServer.cs プロジェクト: rouchen/UnityDemo
 //[Server]
 void Awake()
 {
     pCommmon = GetComponent<PlayerCommon>();
     DemoMgr.singleton.AddPlayerOnline();
     pCommmon.SetPlayerId(DemoMgr.GetPlayerOnline());
     pCommmon.SetTeam(((2 - (DemoMgr.GetPlayerOnline() %2) )) );
 }
All Usage Examples Of PlayerCommon::SetTeam