예제 #1
0
    // 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);
    }
예제 #2
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>();
    }
예제 #3
0
 public void setParent(SubmarineFire parent)
 {
     this.parent = parent;
 }