/// ------------------------------------------------------------------------------------------------------------------------------ /// <summary> /// 进入武器刷新点 /// </summary> /// ------------------------------------------------------------------------------------------------------------------------------ private void OnTriggerEnter(Collider c) { if (c.gameObject != null && !IsDirty()) { TankShooting player = c.gameObject.GetComponent <TankShooting>(); if (player != null) { player.SetPlayerWeapon(m_WeaponID); SetDirty(); SpawnManager.s_Instance.DestoryWeapon(m_PerviewObj); m_PerviewObj = null; } } }