void Start()
 {
     rend = GetComponent<Renderer>();
     controller = GameObject.Find ("GameController(Clone)");
     mCtrl=this.gameObject.GetComponentInParent<menu>();
     statsCtrl = GameObject.Find("gameData");
     dataBase = statsCtrl.GetComponent<statsController> ();
     rend.material.color = normalColor;
 }
 void Start()
 {
     rend = GetComponent<Renderer>();
     controller = GameObject.Find ("GameController(Clone)");
     statsCtrl = GameObject.Find("gameData");
     dataBase = statsCtrl.GetComponent<statsController> ();
     playerPosition = new Vector2 (0, 0);
     valid = true;
     mouseon = false;
 }
 //I haven't examined this bit for a long time
 //Just pretend it doesn't exist
 //This is supposed to be somewhere to store info on all the upgrade
 void Start()
 {
     upgrade = this.gameObject.AddComponent <weaponProperties>();
     upgrade.damage = damage;
     upgrade.range = range;
     upgrade.delay = delay;
     upgrade.special = special;
     upgrade.spAmount = spAmount;
     controller = GameObject.Find("gameData");
     sctrl = controller.GetComponent<statsController> ();
     isValid = new bool[sctrl.maxWeapons];
 }
 void Start()
 {
     statsCtrl = GameObject.Find("gameData");
     dataBase = statsCtrl.GetComponent<statsController> ();
 }
Ejemplo n.º 5
0
 void Start()
 {
     controller = GameObject.Find ("GameController(Clone)");
     gctrl=controller.GetComponent<GameController>();
     statsCtrl = GameObject.Find("gameData");
     dataBase = statsCtrl.GetComponent<statsController> ();
     if (kind == "armory") {
         armory ();
     }else if (kind == "sub") {
         subMenu(1);
     }else if (kind=="player"){
         playerMenu();
     }
 }
Ejemplo n.º 6
0
    void Start()
    {
        rend = GetComponent<Renderer>();

        //establish connection with other scripts

        controller = GameObject.Find ("GameController(Clone)");
        gctrl=controller.GetComponent<GameController>();
        statsCtrl = GameObject.Find("gameData");
        dataBase = statsCtrl.GetComponent<statsController> ();
        playerPosition = gctrl.playerPosition;//they should be in sync at all times
    }
 void Start()
 {
     controller = GameObject.Find ("GameController(Clone)");
     statsCtrl = GameObject.Find("gameData");
     dataBase = statsCtrl.GetComponent<statsController> ();
     gctrl=controller.GetComponent<GameController>();
     upgradeOn = gctrl.upgradeOn;
     action = false;
     time = -1;
     displayTime ();
 }
Ejemplo n.º 8
0
 public StatsControllerTest()
 {
     _sut = new statsController(
         _mediator.Object);
 }