Exemplo n.º 1
0
    public C_Hand()
    {
        // Find hand instance
        HandController hand = HandController.FindObjectOfType <HandController>();

        state  = hand.GetState();
        target = hand.target;

        lastPosition = hand.lastPosition;
        position     = hand.transform.position;
    }
Exemplo n.º 2
0
    public void Load()
    {
        // Find hand instance
        HandController hand = HandController.FindObjectOfType <HandController>();

        hand.SetState(state);
        hand.target = target;

        hand.lastPosition       = lastPosition;
        hand.transform.position = position;
    }