예제 #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(this.gameObject);
     }
     DontDestroyOnLoad(this.gameObject);
 }
예제 #2
0
        public void Setup()
        {
            m_Random   = Substitute.For <IRandom>();
            m_Previous = Substitute.For <IPreviousCardValueFinder>();
            m_Next     = Substitute.For <INextCardValueFinder>();
            m_Cards    = CreateCards();

            m_Sut = new DeckTest(m_Random,
                                 m_Previous,
                                 m_Next,
                                 m_Cards);
        }