/// <summary> /// Initializes the bomb /// </summary> protected virtual void Initialization() { if (DamageAreaCollider == null) { Debug.LogWarning("There's no damage area associated to this bomb : " + this.name + ". You should set one via its inspector."); return; } DamageAreaCollider.isTrigger = true; DisableDamageArea(); _renderer = gameObject.MMGetComponentNoAlloc <Renderer> (); if (_renderer != null) { if (_renderer.material.HasProperty("_Color")) { _initialColor = _renderer.material.color; } } _poolableObject = gameObject.MMGetComponentNoAlloc <MMPoolableObject> (); if (_poolableObject != null) { _poolableObject.LifeTime = 0; } _timeSinceStart = 0; _flickering = false; _damageAreaActive = false; }