コード例 #1
0
    // Activate on the server and other clients
    public void ActivateOnServer()
    {
        if (NetworkManager.singleton.isNetworkActive)
        {
            obstacleManager.ActivateObstacle(this);

            Debug.Log("activate on server");
        }
    }