// Start is called before the first frame update
    void Start()
    {
        ps            = GetComponentInChildren <ParticleSystem>();
        emissionCount = ps.emissionRate;
        s             = GetComponent <Submarine>();
        sf            = GetComponent <SubmarineFire>();
        rb            = GetComponent <Rigidbody2D>();


        player = Rewired.ReInput.players.GetPlayer(0);
    }
    //Sound Stuff
    //private SoundManager _soundManager;

    // Start is called before the first frame update
    void Start()
    {
        image        = GetComponent <Image>();
        rt           = GetComponent <RectTransform>();
        initialWidth = rt.rect.width;
        sub          = Utilities.Instance.GetCollection["player"].GetComponent <SubmarineFire>();
        maxCool      = 1f;

        //Sound Stuff
        //_soundManager = FindObjectOfType<SoundManager>();
    }
Example #3
0
 public void setParent(SubmarineFire parent)
 {
     this.parent = parent;
 }