Esempio n. 1
0
        public override void OnPickup()
        {
            isUser = true;
            penManager.SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PenManager.StartUsing));

            SendCustomNetworkEvent(NetworkEventTarget.All, nameof(ChangeStateToPenIdle));
        }
Esempio n. 2
0
        public override void OnPickup()
        {
            isUser = true;

            if (!Networking.IsOwner(penManager.gameObject))
            {
                Networking.SetOwner(Networking.LocalPlayer, penManager.gameObject);
            }

            penManager.SendCustomNetworkEvent(NetworkEventTarget.All, nameof(PenManager.StartUsing));

            SendCustomNetworkEvent(NetworkEventTarget.All, nameof(ChangeStateToPenIdle));
        }