private void MyStoryboard_Completed(object sender, EventArgs e)
 {
     canvasForAnimation.Children.Remove(bone.BoneGrid);
     zoneTo.AddBone(bone, isToEnd);
     HasAlreadyMadeMove = false;
     if (isNeedToTransferMove)
     {
         BonesRepository.NextMove(Bones.Count > 0);
     }
 }
Exemple #2
0
        private async void MakeMoveWithDelay()
        {
            await Task.Delay(DelayInMs);

            if (!TryMakeMove())
            {
                if (TryGetBoneFromRest())
                {
                    IsTurnToMove = true;
                }
                else
                {
                    BonesRepository.NextMove(Bones.Count > 0);
                }
            }
        }
Exemple #3
0
        private async void NextMoveWithDelay()
        {
            await Task.Delay(DelayInMs);

            BonesRepository.NextMove(Bones.Count > 0);
        }