示例#1
0
    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>();
    }
示例#2
0
文件: BoxModel.cs 项目: Linko-3D/LD40
 public bool CanMoveBy(TerrainButtonModel groundButton)
 {
     return(groundButton.CanBePressedBy(this));
 }