Esempio n. 1
0
	void SetAttack(){
		currstate = B2State.Attack;
		attackblink = 60;
	}
Esempio n. 2
0
	void SetDie(){
		timer = 60;
		currstate = B2State.Die;
	}
Esempio n. 3
0
	void SetChaseContinue(){
		currstate = B2State.Chase;
	}
Esempio n. 4
0
	void SetChaseStart(){
		timer = 300;
		currstate = B2State.Chase;
		transform.position = new Vector2(startx, starty);
		dir_x = 0;
		dir_y = 0;
	}
Esempio n. 5
0
	void SetSummon(){
		timer = 300;
		currstate = B2State.Summon;
		dir_x = 0;
		dir_y = 0;
		transform.position = new Vector2(summonx, summony);
	}
Esempio n. 6
0
	// End

	void SetIdle(){
		timer = 40;
		currstate = B2State.Idle;
		dir_x = 0;
		dir_y = 0;
	}
Esempio n. 7
0
	void SetDie(){
		timer = 60;
		Destroy (this);
		Destroy (this.gameObject);
		float vol = Random.Range (volLowRange, volHighRange);
		source.PlayOneShot(dieSound,vol);
		currstate = B2State.Die;
	}