Exemple #1
0
    private void startEndAnimaition()
    {
        mCurEndImgShowTime = 0;
        mState             = STATE_END;

        if (mIsClicked)
        {
            CircleController circleController = circles[0].GetComponent <CircleController>();

            mClearImageController.startAnimaition(circles[0].transform.position, circleController.getColor32());
        }
        else
        {
            // right case
            //int onePerson = Random.Range(0, touches.Count);

            // wrong case
            int onePerson = Random.Range(0, touches.Count - 1);


            touchlocation thisTouch = touches[onePerson];

            foreach (touchlocation tl in touches)
            {
                if (tl == thisTouch)
                {
                    continue;
                }

                tl.dismissCircle();
            }

            mClearImageController.startAnimaition(thisTouch.getPos(), thisTouch.getColor32());
        }
    }
Exemple #2
0
        private void showCircle(Vector3 pos)
        {
            CircleController controller = circle.GetComponentInChildren <CircleController>();

            controller.initCircle();
            mColor32 = controller.getColor32();

            moveCircle(pos);
            circle.SetActive(true);
            SoundManager.sInstance.playOneShot(AudioClipManager.sinstance.AC_GEM_GET);
        }