26 lines
553 B
C#
26 lines
553 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 override void _Ready()
|
|
{
|
|
base._Ready();
|
|
_region = GetNode<Area2D>("Region");
|
|
|
|
_leftEdge = GetNode<Node2D>("LeftEdge");
|
|
_rightEdge = GetNode<Node2D>("RightEdge");
|
|
|
|
CollisionShape2D regionBounds = _region.GetNode<CollisionShape2D>("Bounds");
|
|
|
|
_map = GetNode<Map>("Map");
|
|
}
|
|
|
|
}
|