Exemplo n.º 1
0
    // Use this for initialization
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        m_paintTable = new PaintTable(m_PaintTableCamera);
        m_InputManager.SetPaintTable(m_paintTable);
        m_shootRaceGameManager = new ShootRaceGame();          //TODO :Here i want create what minigame i want , next feature to do
        m_shootRaceGameManager.onGameStarted += OnGameStart;
        m_shootRaceGameManager.onGameEnded   += OnGameEnd;

        m_AudioManager.PlayPersistent(m_AudioReferences.background2);
    }
Exemplo n.º 2
0
 public override void Init(PaintTable paintTable)
 {
     base.Init(paintTable);
 }
Exemplo n.º 3
0
 public void SetPaintTable(PaintTable paintTable)
 {
     m_paintTable = paintTable;
 }
Exemplo n.º 4
0
 public DrawerTool(GameObject tool, PaintTable paintTable)
 {
     m_drawerTool = tool;
     m_painTable  = paintTable;
 }
Exemplo n.º 5
0
 public virtual void Init(PaintTable paintTable)
 {
     m_paintTable = paintTable;
 }
Exemplo n.º 6
0
    public override void Init(PaintTable paintTable)
    {
        base.Init(paintTable);

        m_aoTouchInfos = new TouchInfo[StaticConf.Input.MAX_TOUCH_NUMBERS];
    }