Пример #1
0
    private void Start()
    {
        FirstPhase  = GetComponent <FirstPhase>();
        SecondPhase = GetComponent <Swipo>();
        ThirdPhase  = GetComponent <Shaker>();

        SetInstruc();
        UpdateScore(0);
    }
Пример #2
0
        public override int CompareTo(object y)
        {
            var other = y as Phase;

            if (other == null)
            {
                return(0);
            }

            var firstComparison = FirstPhase.CompareTo(other.FirstPhase);

            return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase));
        }
Пример #3
0
        public void HaveTheRightNumberOfMatchesAfterRun()
        {
            var firstPhase = new FirstPhase(FakeMovieGenerator.GetDefaultMovieList());

            Assert.Equal(4, firstPhase.Matches.Count);
        }
Пример #4
0
        public int CompareTo(Phase other)
        {
            var firstComparison = FirstPhase.CompareTo(other.FirstPhase);

            return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase));
        }
Пример #5
0
 private void Start()
 {
     firstPhase = GameManager.instance.gameObject.GetComponent <FirstPhase>();
 }