Ejemplo n.º 1
0
	void Start () {
		Application.runInBackground = true;
		gameOverCanvas.SetActive (false);
		//how to do stuffff


		BladeCast.BCListener listener = GetComponent<BladeCast.BCListener>();
		sender = GetComponent<BladeCast.BCSender>();

		//sender.SendToListeners("disabled", "playerId", "ten", 1);	//immune player


		listener.Add ("connect", 0, "SpawnAPlayer");

		movementListener = new BCListener.Listener ("movement", 0, "SaveJson");
		listener.Add (movementListener);
		//listener.Add("movement", 0, "Move");

		jumpingListener = new BCListener.Listener ("jump", 0, "SaveJson");
		//listener.Add("jump", 0, "Jump");
		listener.Add(jumpingListener);

		StartCoroutine (SpawnPowerUpsForever ());

	}
Ejemplo n.º 2
0
    void Start()
    {
        Application.runInBackground = true;
        gameOverCanvas.SetActive(false);
        //how to do stuffff


        BladeCast.BCListener listener = GetComponent <BladeCast.BCListener>();
        sender = GetComponent <BladeCast.BCSender>();

        //sender.SendToListeners("disabled", "playerId", "ten", 1);	//immune player


        listener.Add("connect", 0, "SpawnAPlayer");

        movementListener = new BCListener.Listener("movement", 0, "SaveJson");
        listener.Add(movementListener);
        //listener.Add("movement", 0, "Move");

        jumpingListener = new BCListener.Listener("jump", 0, "SaveJson");
        //listener.Add("jump", 0, "Jump");
        listener.Add(jumpingListener);

        StartCoroutine(SpawnPowerUpsForever());
    }
Ejemplo n.º 3
0
	// Use this for initialization
	void Start () {
		BladeCast.BCListener listener = GetComponent<BladeCast.BCListener>();
        sender = GetComponent<BladeCast.BCSender>();
		listener.Add("movement", 0, "Move");
		listener.Add("fire", 0, "Fire");
        listener.Add("spawn", 0, "Spawn");
		rb = GetComponent<Rigidbody>();
        players = GameObject.FindGameObjectsWithTag("Player");
        health = initialHealth;
	}
Ejemplo n.º 4
0
 void Start()
 {
     Application.runInBackground = true;
     BladeCast.BCListener listener = GetComponent<BladeCast.BCListener>();
     sender = GetComponent<BladeCast.BCSender>();
     listener.Add("controls", 0, "applycontrols");
     //tankGraphics = tankGraphics.transform.FindChild("Tank");
     bulletPower = 0;
     basespeed = bullet.GetComponent<FireBullet>().bulletspeeds;
 }
Ejemplo n.º 5
0
 void Start()
 {
     Application.runInBackground = true;
     BladeCast.BCListener listener = GetComponent <BladeCast.BCListener>();
     sender = GetComponent <BladeCast.BCSender>();
     listener.Add("controls", 0, "applycontrols");
     //tankGraphics = tankGraphics.transform.FindChild("Tank");
     bulletPower = 0;
     basespeed   = bullet.GetComponent <FireBullet>().bulletspeeds;
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     BladeCast.BCListener listener = GetComponent <BladeCast.BCListener>();
     sender = GetComponent <BladeCast.BCSender>();
     listener.Add("movement", 0, "Move");
     listener.Add("fire", 0, "Fire");
     listener.Add("spawn", 0, "Spawn");
     rb      = GetComponent <Rigidbody>();
     players = GameObject.FindGameObjectsWithTag("Player");
     health  = initialHealth;
 }
Ejemplo n.º 7
0
	// Use this for initialization
	void Start () {
		//how to do stuffff
		listener = GetComponent<BladeCast.BCListener>();
        sender = GetComponent<BladeCast.BCSender>();
		movementListener = new BCListener.Listener ("movement", 0, "Move");
		listener.Add (movementListener);
		//listener.Add("movement", 0, "Move");

		jumpingListener = new BCListener.Listener ("jump", 0, "Jump");
		//listener.Add("jump", 0, "Jump");
		listener.Add(jumpingListener);

		attackingListener = new BCListener.Listener ("attack", 0, "Attack");
        //listener.Add("attack", 0, "Attack");
		listener.Add(attackingListener);

		rb = GetComponent<Rigidbody>();
        
	}
Ejemplo n.º 8
0
    // Use this for initialization
    void Start()
    {
        //how to do stuffff
        listener         = GetComponent <BladeCast.BCListener>();
        sender           = GetComponent <BladeCast.BCSender>();
        movementListener = new BCListener.Listener("movement", 0, "Move");
        listener.Add(movementListener);
        //listener.Add("movement", 0, "Move");

        jumpingListener = new BCListener.Listener("jump", 0, "Jump");
        //listener.Add("jump", 0, "Jump");
        listener.Add(jumpingListener);

        attackingListener = new BCListener.Listener("attack", 0, "Attack");
        //listener.Add("attack", 0, "Attack");
        listener.Add(attackingListener);

        rb = GetComponent <Rigidbody>();
    }