コード例 #1
0
        void Awake()
        {
            removeStrategy          = RemoveStrategy.ClearAll;
            maxLines                = 6;
            scoreToAccept           = 0.8f;
            clearNotRecognizedLines = true;

            // MY VARS
            cam        = Camera.main;
            player     = GameObject.FindGameObjectWithTag("Player");
            recognizer = GameObject.FindGameObjectWithTag("Recognizer").GetComponent <Recognizer>();

            in3D = true;
            line.relativeSize = true;
            line.LineList     = false;
            lines             = new List <UILineRenderer>()
            {
                line
            };
            rectTransform = transform as RectTransform;
            UpdateLines();

            ClearLines();
        }