Exemplo n.º 1
0
        void Awake()
        {
            var ms = gameObject.AddComponent <MarkerScaler> ();

            ms.scale = 0.6f;
            renderer.material.color = Color.cyan;
            mark = gameObject.AddComponent <MarkGraphic> ();
            mark.setColor(Color.cyan);
            dragForce = gameObject.AddComponent <DragForce> ();
        }
Exemplo n.º 2
0
        void Awake()
        {
            var ms = gameObject.AddComponent <MarkerScaler> ();

            ms.scale = 0.6f;
            var color = Color.cyan;

            color.a = 0.5f;
            gameObject.GetComponent <Renderer> ().material.color = color;
            mark = gameObject.AddComponent <CrossMarkGraphic> ();
            mark.setColor(Color.cyan);
            dragForce = gameObject.AddComponent <DragForce> ();
        }
Exemplo n.º 3
0
 void Awake()
 {
     var ms = gameObject.AddComponent<MarkerScaler> ();
     ms.scale = 0.6f;
     var color = Color.cyan;
     color.a = 0.5f;
     gameObject.GetComponent<Renderer> ().material.color = color;
     mark = gameObject.AddComponent<CrossMarkGraphic> ();
     mark.setColor (Color.cyan);
     dragForce = gameObject.AddComponent<DragForce> ();
 }
Exemplo n.º 4
0
 void Awake()
 {
     var ms = gameObject.AddComponent<MarkerScaler> ();
     ms.scale = 0.6f;
     renderer.material.color = Color.cyan;
     mark = gameObject.AddComponent<MarkGraphic> ();
     mark.setColor (Color.cyan);
     dragForce = gameObject.AddComponent<DragForce> ();
 }