Example #1
0
        private void OnTriggerEnter(Collider other)
        {
            TankControls tankControls = other.gameObject.GetComponent <TankControls>();

            if (tankControls != null)
            {
                tankControls.AddModifier(Modifier);

                gameObject.SetActive(false);

                Invoke("Respawn", RespawnTime);
            }
        }