Example #1
0
    public void CreateHand(Vector3 worldPosition, float canvasRadius = 98.5f,
                           float totalTime = 3f, Action callback = null)
    {
        GameObject handObject = Utils.Spawn(HandViewerPrefab, HandViewerRoot);
        HandViewer handViewer = handObject.GetComponent <HandViewer>();

        handViewer.Init(worldPosition, canvasRadius, totalTime, callback);
    }
Example #2
0
 public override void OnLeftClickDown()
 {
     if (card.container == card.controller.hand && !is_targeting)
     {
         field_viewer    = card.controller.field.GetComponent <FieldViewer>();
         hand_viewer     = card.controller.hand.GetComponent <HandViewer>();
         attach_to_mouse = StartCoroutine(AttachToMouse());
     }
 }