示例#1
0
        public void PickUpPlant(Vector3 worldPosition)
        {
            TileCell cellForPut = GetTileCellByPosition(worldPosition);

            if (cellForPut == null)
            {
                return;
            }

            cellForPut.PickUpPlant();
        }
示例#2
0
        public void SetBedToPosition(TileBase bedTile, Vector3 worldPosition, Action onSet)
        {
            TileCell setCandidate = GetTileCellByPosition(worldPosition);

            if (setCandidate == null)
            {
                return;
            }

            setCandidate.SetBed(bedTile, onSet);
        }
示例#3
0
        public void PutInCell(Vector3 worldPosition, Plant plant)
        {
            TileCell cellForPut = GetTileCellByPosition(worldPosition);

            if (cellForPut == null || plant == null)
            {
                return;
            }

            cellForPut.PutInBed(plant);
        }