public void Spawn() { GameObject bullet; bullet = MerlionTailSpawner.Instantiate(mPrefab, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.Euler(0.0f, 0.0f, 0.0f)) as GameObject; bullet.transform.position = mTransform.position; }
public void Spawn() { GameObject bullet; bullet = MerlionTailSpawner.Instantiate(mPrefab, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.Euler(0.0f, 0.0f, 90.0f)) as GameObject; bullet.transform.position = mTransform.position; bullet.GetComponent <Rigidbody2D>().velocity = new Vector2(mVelocity, 0.0f); }