コード例 #1
0
ファイル: Score.cs プロジェクト: hungpro2341999/DunkShot
    // Start is called before the first frame update



    void Start()
    {
        player = GameObject.Find("Ball").GetComponent <BallPlayer>();

        score.GetComponent <Text>().text = "" + ScoreCurrent;

        cooltime = LevelController.instance.getCoolTimeLevel();
    }
コード例 #2
0
ファイル: BallPlayer.cs プロジェクト: hungpro2341999/DunkShot
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
コード例 #3
0
ファイル: Gameplay.cs プロジェクト: paladinlll/JumperShape
    public void PlayGame()
    {
        m_prepareLayer.SetActive(false);
        m_hudLayer.SetActive(true);
        m_bEnded   = false;
        m_bPausing = false;

        m_workingLevelDTO.Clear();
        m_levelSubStep = 0;

        m_ballPlayer = SpawnGameObject <BallPlayer> ("BallPlayer");
        m_ballPlayer.SetMapPos(Vector2.zero);

        m_scoreText.text = m_score.ToString();
    }