Ejemplo n.º 1
0
    private void Start()
    {
        FirstPhase  = GetComponent <FirstPhase>();
        SecondPhase = GetComponent <Swipo>();
        ThirdPhase  = GetComponent <Shaker>();

        SetInstruc();
        UpdateScore(0);
    }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
        public void HaveTheRightNumberOfMatchesAfterRun()
        {
            var firstPhase = new FirstPhase(FakeMovieGenerator.GetDefaultMovieList());

            Assert.Equal(4, firstPhase.Matches.Count);
        }
Ejemplo n.º 4
0
        public int CompareTo(Phase other)
        {
            var firstComparison = FirstPhase.CompareTo(other.FirstPhase);

            return(firstComparison != 0 ? firstComparison : SecondPhase.CompareTo(other.SecondPhase));
        }
Ejemplo n.º 5
0
 private void Start()
 {
     firstPhase = GameManager.instance.gameObject.GetComponent <FirstPhase>();
 }