コード例 #1
0
	// Use this for initialization
	public void initialize(float x, float z, Quaternion nheading, BulletPool pool, Team.TeamEnum alignment = Team.TeamEnum.kEnemy)
    {
		bPool = pool;
        this.alignment = alignment;

        temp.Set(x, bullet_height, z);
        gameObject.transform.position = temp;
        gameObject.transform.rotation = nheading;
        velocity.Set(0.0f, 0.0f, bullet_speed);
    }
コード例 #2
0
ファイル: Damage.cs プロジェクト: mercurytw/DeathBurger
 public Damage(int amount, Team.TeamEnum team, int recipient_hash) {
     this.amount = amount;
     this.team = team;
     this.recipient_hash = recipient_hash;
 }