Esempio n. 1
0
    public void GrowSegment(GameObject prefab, int healAmount = 1)
    {
        SegmentGrowth growth = new SegmentGrowth();

        growth.mSegmentPrefab  = prefab;
        growth.mCurrentSegment = mSegments.First;
        growth.mHealAmount     = healAmount;

        mSegmentGrowths.Add(growth);
    }
Esempio n. 2
0
    public void GrowSegment(GameObject prefab, int healAmount = 1)
    {
        SegmentGrowth growth = new SegmentGrowth();
        growth.mSegmentPrefab = prefab;
        growth.mCurrentSegment = mSegments.First;
        growth.mHealAmount = healAmount;

        mSegmentGrowths.Add(growth);
    }