Example #1
0
        // Use this for initialization
        void Start()
        {
            radius = NoloController.NoloGetData() != null?NoloController.NoloGetData()[4] : 2.0f;

            height = NoloController.NoloGetData() != null?NoloController.NoloGetData()[0] : 1.5f;

            CreateReticleVertices();
            render = GetComponent <Renderer>();
            render.material.renderQueue = 4000 + 100;
        }
Example #2
0
        NoloController GetNoloController(string controllerName)
        {
            NoloController noloCtrller = null;
            Transform      noloTransf  = gameObject.transform.Find(controllerName);

            if (noloTransf != null)
            {
                noloCtrller = noloTransf.GetComponent <NoloController>();
            }
            return(noloCtrller);
        }