using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
using Photon.Realtime;
using PhotonHashTable = ExitGames.Client.Photon.Hashtable;

public class PhotonRigidbodyAssigner : MonoBehaviourPunCallbacks
{
    // Start is called before the first frame update
    void Start()
    {
        Rigidbody rBody = GetComponent<Rigidbody>();
        if (PhotonNetwork.IsConnected)
        {
            if (rBody)
            {
                photonView.ObservedComponents.Add(rBody);
            }
        }
    }
}
