コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        MySprite = gameObject.GetComponent <SpriteRenderer>();
        MySprite.sortingOrder = 1;              // int
        anim = GetComponent <Animator>();
        Debug.Log("進む(ジャンプする)回数 (MoveForward_StepNum) : " + MoveForward_StepNum);

        SelectJankenManager = GameObject.Find("SelectJankenManager");
        SelectJankenMSC     = SelectJankenManager.GetComponent <SelectJanken>();

        ShuffleCardsManager = GameObject.Find("ShuffleCardsManager");
        ShuffleCardsMSC     = ShuffleCardsManager.GetComponent <ShuffleCards>();

        Text_StepNum = GameObject.Find("Text_StepNum");
    }
コード例 #2
0
        static void Main(string[] args)
        {
            ICardInitialization cardInitialization = new CardInitialization();
            IShuffleCards       shuffleCards       = new ShuffleCards();
            IDeck          deck          = new Deck(cardInitialization);
            IPlayCardLogic playCardLogic = new RemoveFrontPlayCardLogic();

            IGame game = new Game(deck, shuffleCards, playCardLogic);

            CardBase cardBase = game.PlayCard();

            game.ShuffleDeck();
            cardBase = game.PlayCard();
            game.Restart();
        }
コード例 #3
0
        public static void Main(string[] args)
        {
            MaxLoot.Test();
            return;

            PerfectSquares.Test();
            CountTriplets.Test();
            TrianglePath.Test();
            FindBusiest.Test();
            DeletionDistance.Test();
            ShuffleCards.Test();
            PowerSet.Test();
            //SmallestNonNegativeNumber.Test();
            MaxSubsetSum.Test();
            Graph.Test();
            RankFromStream.Test();
            SearchInsert.Test();
            RemoveElementTest.TestRemoveElement();
            MergeSortedLists.TestMergeTwoLists();
        }