Example #1
0
    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;
    }
Example #2
0
    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);
    }