Exemplo n.º 1
0
    void Awake()
    {
        rb2d           = this.GetComponent <Rigidbody2D>();
        shootingPooled = this.GetComponent <ShootingPooled>();

        instance = this;
    }
Exemplo n.º 2
0
    ShootingPooled InitMyPooledShooting(ShootingPooled current)
    {
        if (current == null)
        {
            current = this.GetComponent <ShootingPooled> ();
        }
//		else
//			return current;

        if (current == null)
        {
            Debug.LogError(this.ToString() + " needs ShootingPooled Script attached!");
            this.enabled = false;
        }
        else
        {
            if (useWeaponSettings)
            {
                ReadWeaponSettings(current);
            }
        }

        return(current);
    }
Exemplo n.º 3
0
 void Awake()
 {
     myPooledShooting = InitMyPooledShooting(myPooledShooting);
 }
Exemplo n.º 4
0
    void ReadWeaponSettings(ShootingPooled current)
    {
//		minTimeBetweenTrigger = current.
//		maxTimeBetweenTrigger = current.
    }