Beispiel #1
0
    public void Activate()
    {
        if (cameraController != null)
        {
            _rb.isKinematic          = false;
            isActive                 = true;
            _rb.detectCollisions     = true;
            cameraController.enabled = true;
            cameraController.Reset();
            GetComponent <ThirdPersonController> ().enabled = true;
        }

        for (int i = 0; i < myTransform.childCount; i++)
        {
            myTransform.GetChild(i).gameObject.SetActive(true);
        }
        photonView.RPC("RPCActivate", PhotonTargets.OthersBuffered);
    }