コード例 #1
0
    public void TweenFromTarget(GameObject target)
    {
        gameObject.SetActive(true);

        transform.localPosition = new Vector3(0f, 0f, 0f);

        Vector3 pos = transform.InverseTransformPoint(target.transform.position);

        twPos.from = new Vector3(pos.x - 88f, pos.y + 109.5f, pos.z);

        twPos.Play(true);
        twH.Play(true);
        twW.Play(true);
    }