Пример #1
0
    void SpawnSlice()
    {
        Quaternion        spawnRot = Quaternion.Euler(0, 0, Random.Range(0, 360));
        Vector3           sliceSpawnPositionVariation = new Vector3(Random.Range(-sliceSpawnPositionVariationMax, sliceSpawnPositionVariationMax), Random.Range(-sliceSpawnPositionVariationMax, sliceSpawnPositionVariationMax), 0);
        DaggerSliceScript daggerSliceScript           = Instantiate(slicePrefab, sliceSpawnBasePosition.position + sliceSpawnPositionVariation, spawnRot).GetComponent <DaggerSliceScript>();

        daggerSliceScript.Initialize(sliceTimeToLive * Mathf.Pow(sliceTimeToLiveMultDecreasePerCombo, comboCounter.combo), comboCounter, daggerHitTextScript);
    }
Пример #2
0
 public DaggerSlicingState(DaggerSliceScript slice)
 {
     _slice = slice;
 }