Beispiel #1
0
 private void Awake()
 {
     this.movementContainer = GetComponent <BoxCollider2D>();
     this.hitBoxCollider    = this.hitbox.GetComponent <BoxCollider2D>();
     this.triggerController = this.trigger.GetComponent <TriggerController>();
     this.mover             = new CoroutineMover(this.animationCurve, this.rock);
 }
Beispiel #2
0
 private void Awake()
 {
     this._mover = new CoroutineMover(animationCurve, this.gameObject);
 }
    //
    // Lifecycle
    //

    private void Awake()
    {
        this._mover  = new CoroutineMover(animationCurve, this.gameObject);
        this._hitbox = this.hitboxContainer.GetComponent <BoxCollider2D>();
    }