Assets\Tanks\Scripts\Tank\TankState.cs(103,46): error CS0117: 'NetworkObject' does not contain a definition for 'FindObject'
Assets\Tanks\Scripts\Tank\TankState.cs(103,46): error CS0117: 'NetworkObject' does not contain a definition for 'FindObject'
Assets\Tanks\Scripts\Tank\TankState.cs(103,46): error CS0117: 'NetworkObject' does not contain a definition for 'FindObject'
------------------->SOURCE-------------------------------------------------------------------- [RRPC] void OnDamage(int damage, int killerID) { if (dead) return;
Health -= damage; attaker = RasonManager.GetPlayer(killerID);
if (netObject.isMine) { if (damage > 10) SendMessage("Shake", 4, SendMessageOptions.DontRequireReceiver); else SendMessage("Shake", 1, SendMessageOptions.DontRequireReceiver); }
if (Health < 0) Health = 0; if (Health == 0) // Explode the Tank { dead = true; if (netObject.isMine) { gm.onDielN.WaitFor = 4; gm.onDieKiller.text = attaker.name;