コード例 #1
0
    void Start()
    {
        m_NextDropTime = -1;
        m_GameLogic = FindObjectOfType<GameLogicScript>();
        m_TimeWarper = FindObjectOfType<TimeWarper>();

        m_GameLogic.OnGameStart += OnGameStart;
        m_GameLogic.AddScore(GetFruitScore);

        m_FruitGrabs = new Dictionary<string, int>();
    }
コード例 #2
0
    private void Start()
    {
        m_NextPancakeTime = -1;
        m_GameLogic = FindObjectOfType<GameLogicScript>();
        m_TimeWarper = FindObjectOfType<TimeWarper>();

        m_GameLogic.OnGameStart += OnGameStart;
        m_GameLogic.OnGameEnd += OnGameEnd;
        m_GameLogic.AddScore(GetPancakeScore);
    }