Newer
Older
DungeonShooting / DungeonShooting_Godot / src / IObject.cs
@小李xl 小李xl on 22 Aug 2022 355 bytes 开始调整架构
using Godot;
using System;

/// <summary>
/// 房间内所有物体都必须实现该接口
/// </summary>
public interface IObject
{
    float GlobalHeight { get; set; }

    Vector2 GlobalPosition { get; set; }

    CollisionComponent Collision { get; }

    void OnOtherEnter(IObject other);

    void OnOtherExit(IObject other);

    void Destroy();
}