/// <summary> /// Adds shape to the list of hit shapes. /// </summary> /// <param name="shape"></param> public void AddShape(ConsumableShapeControl shape) { if (!m_ConsumedShapes.Contains(shape)) { m_ConsumedShapes.Add(shape); } }
private void OnConsumableShapeHit(ConsumableShapeControl shape) { Events.instance.Raise(new SFXAudioEvent(m_ConsumableShapeAudio.GetCurrentClip())); m_ConsumableShapeAudio.IncrementIndex(); AddShape(shape); if (AllConsumed()) { Events.instance.Raise(new AllShapesConsumedEvent()); } }