Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log ("Start called");
        _fire_mode = FIRE_PRESSED;
        setLimitedTodScreen (true);
        isEnemy = false;

        _gun = new Weapon (this, 0.4f, "gun");
        _gun.setDirection (Projectile.DIRECTION_RIGHT);
        _shootgun = new Weapon (this, 0.5f, "shootgun");
        _shootgun.setDirection (Projectile.DIRECTION_RIGHT);
        _minigun = new Weapon (this, 0.15f, "minigun");
        _minigun.setDirection (Projectile.DIRECTION_RIGHT);
        _canon = new Weapon (this, 1f, "canon");
        _canon.setDirection (Projectile.DIRECTION_RIGHT);
    }