private void Start() { networkTransform = new NetworkTransform(transform); networkRigidbody = new NetworkRigidbody2D(GetComponent <Rigidbody2D>()); SendPayload = new NetworkCommand <Action <string, int> >(LocalSendPayload); SpawnItself = new NetworkRequest <Action <string> >(LocalSpawnItself); SpawnItself.Invoke("Spawn new class"); }