Grass Cutters Together: the project as of moon-sweepers f3666f0
A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date. Images, audio, models and binaries go through Git LFS (.gitattributes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
19
Assets/Scripts/Gameplay/Binder.cs
Normal file
19
Assets/Scripts/Gameplay/Binder.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GrassCutter
|
||||
{
|
||||
/// <summary>E hands it what's in your tool; it ties that into bundles and sends them down the belt.</summary>
|
||||
public class Binder : SiloPiece
|
||||
{
|
||||
public override string Prompt => Silo.Value >= 1f ? Loc.F("Binder: hand in your grass ({0} still to tie)", GameDefs.Kilos(Silo.Value)) : Loc.T("Binder: hand in your grass");
|
||||
public override bool CanInteract => PlayerAgent.Local && PlayerAgent.Local.Tank.Value >= 0.005f;
|
||||
|
||||
public override void Interact() => PlayerAgent.Local?.Tools.Feed(this);
|
||||
|
||||
public override void Ports(List<Port> into)
|
||||
{
|
||||
into.Add(BeltNet.Front(transform));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user