コード例 #1
0
    private void GoBack()
    {
        switch (this.m_dir)
        {
        case ENUM_ITEM_DIRECTION.E_LEFT:
        {
            CustomTweenRotation.Begin(this.gameObject, 0.5f, C_LEFT_ANG);
        }
        break;

        case ENUM_ITEM_DIRECTION.E_DOWN:
        {
            CustomTweenRotation.Begin(this.gameObject, 0.5f, C_DOWN_ANG);
        }
        break;

        case ENUM_ITEM_DIRECTION.E_RIGHT:
        {
            CustomTweenRotation.Begin(this.gameObject, 0.5f, C_RIGHT_ANG);
        }
        break;

        case ENUM_ITEM_DIRECTION.E_UP:
        {
            CustomTweenRotation.Begin(this.gameObject, 0.5f, C_UP_ANG);
        }
        break;
        }
    }
コード例 #2
0
 void Rotation(Quaternion to)
 {
     CustomTweenRotation.Begin(tweenTarget.gameObject, duration, to).easeType = EaseType.linear;
 }