Ejemplo n.º 1
0
        private void CheckForSplats(mg_ss_BlobCluster p_cluster)
        {
            List <Vector3>    splatPositions     = p_cluster.GetSplatPositions();
            float             num                = 1f;
            mg_ss_SplatObject mg_ss_SplatObject2 = null;

            foreach (Vector3 item in splatPositions)
            {
                num = Random.Range(m_minSplatScale, m_maxSplatScale);
                mg_ss_SplatObject2 = ((Random.Range(0, 5) != 0) ? MinigameManager.GetActive <mg_SmoothieSmash>().Resources.GetInstancedResource(mg_ss_EResourceList.GAME_SPLAT).GetComponent <mg_ss_SplatObject>() : MinigameManager.GetActive <mg_SmoothieSmash>().Resources.GetInstancedResource(mg_ss_EResourceList.GAME_SPLAT_LITTLE).GetComponent <mg_ss_SplatObject>());
                mg_ss_SplatObject2.Initialize(item, num, p_cluster.Color);
                MinigameSpriteHelper.AssignParentTransform(mg_ss_SplatObject2.gameObject, base.transform);
            }
        }
Ejemplo n.º 2
0
        public void SmashTo(int p_numBlobs, Vector2 p_initialOffset, Vector2 p_finalOffset, float p_duration, Color p_color, float p_blobDelay, bool p_showSplatter)
        {
            mg_ss_BlobCluster item = new mg_ss_BlobCluster(p_numBlobs, p_initialOffset, p_finalOffset, m_initialRadiusX, m_initialRadiusY, m_finalRadiusX, m_finalRadiusY, m_initialScale, m_finalScale, m_blobScaleVariationPercentage, p_duration, p_color, p_blobDelay, p_showSplatter, m_blobSinModMin, m_blobSinModMax, base.transform);

            m_blobClusters.Add(item);
        }