예제 #1
0
 // Use this for initialization
 void Awake()
 {
     handDraggingComp = gameObject.GetComponent <HandDragging>();
     handRotateComp   = gameObject.GetComponent <HandRotate>();
     handResizeComp   = gameObject.GetComponent <HandResize>();
     gameManagerComp  = GameObject.Find("Managers").GetComponent <GameManager>();
 }
예제 #2
0
    public override void Start()
    {
        base.Start();
        dragScript   = interactiveArea.GetComponent <HandDragging>();
        scaleScript  = interactiveArea.GetComponent <HandResize>();
        rotateScript = interactiveArea.GetComponent <HandRotate>();

        ActivateManipulation((int)ManipulationType.DRAG);
    }