27 lines
373 B
C#
27 lines
373 B
C#
using UnityEngine;
|
|
|
|
internal class FishCanSeeBoilie : FishCanSeeObject
|
|
{
|
|
public override bool TestObject(GameObject go)
|
|
{
|
|
if (go == null)
|
|
{
|
|
return false;
|
|
}
|
|
if (go.transform.position.y > 0f)
|
|
{
|
|
return false;
|
|
}
|
|
if (Fish.disableLogic2)
|
|
{
|
|
return false;
|
|
}
|
|
return fish.LikesBoilie(go);
|
|
}
|
|
|
|
public override bool AllowSearch()
|
|
{
|
|
return true;
|
|
}
|
|
}
|