Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        ownershipHandler = GetComponent <OwnershipHandler>();
        photonView1      = gameObject.GetComponent <PhotonView>();


        place = inputText.text;
    }
Example #2
0
    void Start()
    {
        ownershipHandler = GetComponent <OwnershipHandler>();

        rb          = GetComponent <Rigidbody>();
        photonView1 = GetComponent <PhotonView>();

        originalPosition = transform.position;
        originalRotation = transform.rotation;
        originalScale    = transform.localScale;

        originalObjectPlacementPosition = objectToPlace.localPosition;
        originalObjectPlacementRotation = objectToPlace.localRotation;
        originalParentObject            = objectToPlace.transform.parent;

        ToggleHints = GetComponent <TogglePlacementHints>();

        photonView1.RPC("PartAssembly", RpcTarget.All);
    }