void Awake()
    {
        rb2d           = this.GetComponent <Rigidbody2D>();
        shootingPooled = this.GetComponent <ShootingPooled>();

        instance = this;
    }
Example #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);
    }
Example #3
0
 void Awake()
 {
     myPooledShooting = InitMyPooledShooting(myPooledShooting);
 }
Example #4
0
    void ReadWeaponSettings(ShootingPooled current)
    {
//		minTimeBetweenTrigger = current.
//		maxTimeBetweenTrigger = current.
    }