playerModel() public method

public playerModel ( string s ) : void
s string
return void
Ejemplo n.º 1
0
 public void Start()
 {
     movement = gameObject.GetComponent<PlayerMovement>();
     myPlayerName = playername;
     movement.playerModel(activeChar);
     firingHandler = gameObject.GetComponent<FiringHandler>();
     firingHandler.playerModel(activeChar);
     if (Network.isServer)
     {
         playerNames = new string[Server.numberOfPlayers() + 1];
         networkView.RPC("instantiatePlayerNames", RPCMode.AllBuffered, Server.numberOfPlayers() + 1);
         playerFlags = new string[Server.numberOfPlayers() + 1];
         networkView.RPC("instantiatePlayerFlags", RPCMode.AllBuffered, Server.numberOfPlayers() + 1);
     }
 }