void MergingTheCells(ColdCell other) { float distance = Vector3.Distance(this.transform.position, other.transform.position); if (distance <= GetComponent<SphereCollider>().radius * 2.0f) { Vector3 trackingPos = this.transform.position; Quaternion trackingRot = this.transform.rotation; GameObject cTier2Cold = Instantiate(Tier2Cold, trackingPos, trackingRot) as GameObject; cTier2Cold.GetComponent<CellSplitAnimation>().currentLevel = currentLevel; cTier2Cold.GetComponent<CellSplitAnimation>().currentProtein = currentProtein; cTier2Cold.GetComponent<CellSplitAnimation>().isAIPossessed = isAIPossessed; cTier2Cold.GetComponent<CellSplitAnimation>().originCell = this; cTier2Cold.GetComponent<CellSplitAnimation>().originCell1 = other; if (!sound_manager.sounds_evolution[6].isPlaying) { sound_manager.sounds_evolution[6].Play(); } Deactive(); other.Deactive(); } else { Move(other.transform.position); } }