Beispiel #1
0
    private void Awake()
    {
        DontDestroyOnLoad(this);

        body             = GetComponent <Rigidbody2D>();
        body.angularDrag = AngularDrag;
        chargeBar        = Instantiate(chargeBarPrefab);
        spring           = new SpringValue(1);
        launchSound      = GetComponent <AudioSource>();
        SpawnTime        = DateTime.Now;
    }