Пример #1
0
    // Deactivate on the server and other clients
    public void DeactivateOnServer()
    {
        if (NetworkManager.singleton.isNetworkActive)
        {
            obstacleManager.DeactivateObstacle(this);

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