コード例 #1
0
 private void Update()
 {
     Fsm.Update();
     UiCardMovement.Update();
     UiCardRotation.Update();
     UiCardScale.Update();
 }
コード例 #2
0
        //--------------------------------------------------------------------------------------------------------------

        #region Unity Callbacks

        private void Awake()
        {
            //components
            MyTransform = transform;
            MyCollider  = GetComponent <Collider>();
            MyRigidbody = GetComponent <Rigidbody>();
            MyInput     = GetComponent <IMouseInput>();
            Hand        = transform.parent.GetComponentInChildren <IUiCardHand>();
            MyRenderers = GetComponentsInChildren <SpriteRenderer>();
            MyRenderer  = GetComponent <SpriteRenderer>();

            //transform
            UiCardScale    = new UiCardScale(this);
            UiCardMovement = new UiCardMovement(this);
            UiCardRotation = new UiCardRotation(this);


            //fsm
            Fsm = new UiCardHandFsm(MainCamera, CardConfigsParameters, this);
        }
コード例 #3
0
        //--------------------------------------------------------------------------------------------------------------

        #region Transform

        public void RotateTo(Vector3 rotation, float speed)
        {
            UiCardRotation.Execute(rotation, speed);
        }