Пример #1
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> ();
        }
Пример #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> ();
 }