add unity project
add SOLID examples
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace DefaultNamespace.Solid
|
||||
{
|
||||
public class RectangleAreaOfEffect : AreaOfEffect
|
||||
{
|
||||
[SerializeField] private float _width;
|
||||
[SerializeField] private float _height;
|
||||
|
||||
protected override bool IsInsideOfEffectArea(Collision other)
|
||||
{
|
||||
// do some calculations
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user