Plugin Network For PUN Update 1
Options
Nori_SC
✭
hello I wrote a small extension / simplification for photon pun
I will try to expand it a little bit over time, I hope someone will find it useful
--------------------------------------------------------V 0.2---------------------------------------------
Code C#
https://gist.github.com/NoriteSC/95478f0b92d61ed4a70c40b357d5d6b7
Request use Network.Get.
example code;
I will try to expand it a little bit over time, I hope someone will find it useful
--------------------------------------------------------V 0.2---------------------------------------------
Code C#
https://gist.github.com/NoriteSC/95478f0b92d61ed4a70c40b357d5d6b7
Request use Network.Get.
Destroy(GameObject Object,bool Offline); IsConnectedAndIsMine(PhotonView photonView,bool Offline);Request use StartCoroutine()
Destroy(GameObject Object, bool Offline, float time);
example code;
public Rigidbody RB; private PhotonView View; void Start(){ View = GetComponent<PhotonView>(); if (Network.Get.IsConnectedAndIsMine(View, true)) { RB = GetComponent<Rigidbody>(); } } void Update(){ if(RB != null && Network.IsOffline()){ RB.AddForce(transform.up * 1, ForceMode.VelocityChange); } }
1