34 lines
744 B
C#
34 lines
744 B
C#
using Godot;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
public partial class PlayArea : Node2D
|
|
{
|
|
public Node2D _leftEdge, _rightEdge;
|
|
public Area2D _region;
|
|
public Map _map;
|
|
public Bucket _bucket;
|
|
|
|
public override void _Ready()
|
|
{
|
|
base._Ready();
|
|
_bucket = GetNode<Bucket>("Bucket");
|
|
_region = GetNode<Area2D>("Region");
|
|
|
|
_leftEdge = GetNode<Node2D>("LeftEdge");
|
|
_rightEdge = GetNode<Node2D>("RightEdge");
|
|
|
|
CollisionShape2D regionBounds = _region.GetNode<CollisionShape2D>("Bounds");
|
|
|
|
_map = GetNode<Map>("Map");
|
|
}
|
|
|
|
public override void _Process(double delta)
|
|
{
|
|
base._Process(delta);
|
|
_bucket.Move();
|
|
}
|
|
|
|
}
|