File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ protected bool isHost
35
35
return NetworkingManager . singleton . isHost ;
36
36
}
37
37
}
38
+ protected bool isOwner
39
+ {
40
+ get
41
+ {
42
+ return networkedObject . isOwner ;
43
+ }
44
+ }
38
45
public NetworkedObject networkedObject
39
46
{
40
47
get
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public bool isLocalPlayer
26
26
}
27
27
}
28
28
29
- public bool IsOwner
29
+ public bool isOwner
30
30
{
31
31
get
32
32
{
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ bool sendMessagesAllowed
57
57
{
58
58
get
59
59
{
60
- return networkedObject . IsOwner || isLocalPlayer ;
60
+ return isOwner || isLocalPlayer ;
61
61
}
62
62
}
63
63
@@ -315,7 +315,7 @@ public void SetTrigger(string triggerName)
315
315
316
316
public void SetTrigger ( int hash )
317
317
{
318
- if ( isLocalPlayer || networkedObject . IsOwner )
318
+ if ( isLocalPlayer || isOwner )
319
319
{
320
320
using ( MemoryStream stream = new MemoryStream ( ) )
321
321
{
You can’t perform that action at this time.
0 commit comments