コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
        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());
            }
        }