Exemplo n.º 1
0
    void Awake()
    {
        arrShip[0] = GameObject.Find("Mary Celeste");
        arrShip[1] = GameObject.Find("MV Joyita");
        arrShip[2] = GameObject.Find("The Kaz");
        arrShip[3] = GameObject.Find("Octavius");
        arrShip[4] = GameObject.Find("Carol Deering");

        gridLayout     = GameObject.Find("Grid System").GetComponent <GridLayout>();
        oppoGridLayout = GameObject.Find("Grid System Opponent").GetComponent <OppoGridLayout>();

        gameStateManager = GameObject.Find("GameStateManager").GetComponent <GameStateManager>();
        opponentField    = GameObject.Find("Opponent Field");
        playerField      = GameObject.Find("Player Field");
        canvas           = GameObject.Find("Canvas");
        canvasResult     = GameObject.Find("Canvas Result");
        canvasTurn       = GameObject.Find("Canvas Turn");
        textResult       = GameObject.Find("Text Result").GetComponent <Text>();
        textResultStatus = GameObject.Find("Text Result Status").GetComponent <Text>();

        goCross     = GameObject.Find("Cross");
        goSmoke     = GameObject.Find("Smoke");
        goExplosion = GameObject.Find("Explosion");
        goWater     = GameObject.Find("Water");
        goBlueDot   = GameObject.Find("BlueDot");

        textTurn = GameObject.Find("Text Turn").GetComponent <Text>();
    }
Exemplo n.º 2
0
 void Awake()
 {
     gridLayout     = GameObject.Find("Grid System Opponent").GetComponent <OppoGridLayout>();
     setupNavigator = GameObject.Find("SetupNavigator").GetComponent <SetupNavigator>();
 }