コード例 #1
0
 private void Awake()
 {
     scoreHandler1 = GameObject.Find("ScoreHandler1").GetComponent <Handle_score1>();
     scoreHandler2 = GameObject.Find("ScoreHandler2").GetComponent <Handle_score2>();
     manager       = GameObject.Find("Game_Manager").GetComponent <GameManager>();
 }
コード例 #2
0
 private void Start()
 {
     player1 = GameObject.Find("ScoreHandler1").GetComponent <Handle_score1>();
     player2 = GameObject.Find("ScoreHandler2").GetComponent <Handle_score2>();
 }