コード例 #1
0
    void Awake()
    {
        GameObject board = GameObject.Find("Board");

        if (board != null)
        {
            matchDetector = board.GetComponent <MatchDetector>();
        }
        else
        {
            Debug.Log("Couldn't find Board");
        }
    }
コード例 #2
0
 // Use this for initialization
 void Awake()
 {
     block         = GetComponent <Block>();
     matchDetector = GameObject.Find("Board").GetComponent <MatchDetector>();
 }
コード例 #3
0
ファイル: BoardGravity.cs プロジェクト: ronforbes/BlockParty
 // Use this for initialization
 void Awake()
 {
     board = GetComponent<Board>();
     matchDetector = GameObject.Find("Board").GetComponent<MatchDetector>();
 }
コード例 #4
0
ファイル: BoardRaiser.cs プロジェクト: ronforbes/BlockParty
	// Use this for initialization
	void Awake ()
	{
		board = GetComponent<Board> ();
		detector = GetComponent<MatchDetector> ();
		boardController = GetComponent<BoardController> ();
	}
コード例 #5
0
 void Awake()
 {
     matchDetector = (MatchDetector)FindObjectOfType(typeof(MatchDetector));
 }
コード例 #6
0
 void Awake()
 {
     matchDetector = GameObject.Find("Minigame").GetComponent <MatchDetector>();
 }