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> (); }
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> (); }