protected virtual void Start() { _logger = Game.Instance.LoggerFactory(name + "::TerrainButtonController"); Model = new TerrainButtonModel(name, Settings, Game.Instance.PrincessCake.Settings); _audio = this.GetOrAddComponent <AudioSource>(); _renderer = this.GetComponentInChildren <MeshRenderer>(); }
public bool CanMoveBy(TerrainButtonModel groundButton) { return(groundButton.CanBePressedBy(this)); }