Exemplo n.º 1
0
    void actualStart()
    {
        ground = gameObject.GetComponent<MakeGround>();

        //used to set up attributes of board and then create it
        ground.SendMessage("setTerrainAttributes");
        ground.SendMessage("startMakeGrid");

        isBattleGUIActive = false;
    }
Exemplo n.º 2
0
    //method to actually set evertyhing up
    void actualStart()
    {
        //gets the ground (gdm37::and the unit script)
        ground = gameObject.GetComponent<MakeGround>();
        gridFunc = gameObject.GetComponent<GridFunction>();
        units = gameObject.GetComponent<UnitMaster>(); //gdm37
        interaction = gameObject.GetComponent<InteractionControl>(); //gdm37

        //used to set up attributes of board and then create it
        ground.SendMessage("setTerrainAttributes");
        ground.SendMessage("startMakeGrid");

        //gdm37:: used to create the units
        units.SendMessage("teamSetup");

        isBattleGUIActive = false;
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     GameMaster = GameObject.FindGameObjectWithTag("GameMaster");
     ground = GameMaster.GetComponent<MakeGround>();
     if(!ground)
         Debug.Log ("ground not found");
 }
Exemplo n.º 4
0
    //AIscript aiscript;
    // Use this for initialization
    void Start()
    {
        //gets ground script from MakeGround and it's values
        ground = gameObject.GetComponent<MakeGround>();
        gMaster = gameObject.GetComponent<GameMaster>();
        if(cameraControl == null)
        {
            cameraControl = GameObject.Find("Main Camera");
        }

        //AI stuff
        /*
        if(AI == null)
        {
            ai = GameObject.Find("GameMaster");
        }
        aiscript = ai.GetComponent<aiscript>();
        */
    }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     gameMaster = GameObject.FindGameObjectWithTag("GameMaster");
     ground = gameMaster.GetComponent<MakeGround>();
     interaction = gameMaster.GetComponent<InteractionControl>();
 }
Exemplo n.º 6
0
    /*
     * AI elements needed from Rachid
    public GameObject ai;
    AIscript aiscript;
    */
    // Use this for initialization
    void Start()
    {
        ground = gameObject.GetComponent<MakeGround>();
        if(cameraControl == null)
        {
            cameraControl = GameObject.Find("Main Camera");
        }

        /*
         * AI stuff
        if(AI == null)
        {
            ai = GameObject.Find("GameMaster");
        }
        aiscript = ai.GetComponent<aiscript>();
        */
    }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     gMaster = GameObject.FindGameObjectWithTag("GameMaster");
     ground = gMaster.GetComponent<MakeGround>();
 }