예제 #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> ();
        }
예제 #2
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> ();
 }