Esempio n. 1
0
        void Start()
        {
            startPosition = transform.localPosition;
            startScale    = transform.localScale;
            startTime     = Time.realtimeSinceStartup + Random.Range(0.0f, FLOATING_PERIOD);
            type          = ColorUtil.RandomColor();
            ColorUtil.Colorize(type, gameObject);
            transform.localScale = Vector3.zero;
            float randAngle = Random.Range(0.0f, 360.0f);

            transform.localRotation = Quaternion.Euler(0.0f, randAngle, 0.0f);
        }
 private void OnSwipeSelect(int ix)
 {
     type = (ColorUtil.Type)ix;
     ColorUtil.Colorize(type, gameObject);
 }