12 lines
246 B
C#
12 lines
246 B
C#
using BehaviorDesigner.Runtime.Tasks.Basic.SharedVariables;
|
|
|
|
public class FishCatchBait : SetSharedGameObject
|
|
{
|
|
public override void OnStart()
|
|
{
|
|
base.OnStart();
|
|
Fish component = transform.GetComponent<Fish>();
|
|
component.CatchBait();
|
|
}
|
|
}
|