Exemple #1
0
        private string getPickupItemInfostring(PickupItemSpawner pickupItem)
        {
            string msg = "";

            msg += $"{pickupItem.m_itemPrefab.name},";
            msg += $"{Math.Round(pickupItem.transform.position.x, 2)},{Math.Round(pickupItem.transform.position.y, 2)},{Math.Round(pickupItem.transform.position.z, 2)},";
            return(msg);
        }
Exemple #2
0
        public GetRawIngredientAction(PlayerControls player, string ingredient)
        {
            this.player = player;
            state       = 0;

            PickupItemSpawner ingredientSpawner = StationUtil.GetSpawnerForItem(ingredient);

            Logger.Log("GetRawIngredientAction instantiated");

            currentAction = new PathFindAction(player, ingredientSpawner);
        }