コード例 #1
0
ファイル: PastaManager.cs プロジェクト: Permilias/PestoRetro
    private void Awake()
    {
        Instance = this;

        projectilePool = new Queue <PastaProjectile>();
        FillProjectilePool();

        pastas       = new Pasta[configs.Length];
        pastaAmounts = new int[configs.Length];

        for (int i = 0; i < configs.Length; i++)
        {
            pastas[i]       = new Pasta(configs[i]);
            pastaAmounts[i] = configs[i].startingAmount;
        }
    }
コード例 #2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        string IngString = "";

        for (int i = 0; i < recipe.foods.Length; i++)
        {
            IngString = IngString + recipe.foods[i].Name + "\n";
        }

        //IngTxt.text = IngString;

        savedTime = Timer;
    }