PhotonNetwork.Destroy won't always work.

Options
Nonlin
Nonlin
Sometimes it will destroy sometimes it wont' and I can't figure out why.

Here is the script that calls it.
http://hastebin.com/cosacivage.avrasm

Everything else gets called as it should. Debugs tell me it enters the if statements and reaches the PN.destroy.

http://hastebin.com/cosacivage.avrasm

Comments

  • vadim
    Options
    You destroy something referenced with gameObject variables. Are you sure that gameObject points to the object you want to destroy?