PlayerCommon.SetPlayerId C# (CSharp) Method

SetPlayerId() public method

public SetPlayerId ( int id ) : void
id int
return void
    public void SetPlayerId(int id)
    {
        pid = id;
    }

Usage Example

Example #1
0
 //[Server]
 void Awake()
 {
     pCommmon = GetComponent<PlayerCommon>();
     DemoMgr.singleton.AddPlayerOnline();
     pCommmon.SetPlayerId(DemoMgr.GetPlayerOnline());
     pCommmon.SetTeam(((2 - (DemoMgr.GetPlayerOnline() %2) )) );
 }
All Usage Examples Of PlayerCommon::SetPlayerId