Added explosions
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using Cinemachine;
|
||||
|
||||
namespace MirzaBeig.CinematicExplosionsFree
|
||||
{
|
||||
public class CustomImpulse : MonoBehaviour
|
||||
{
|
||||
CinemachineImpulseSource source;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
if (!source)
|
||||
{
|
||||
source = GetComponent<CinemachineImpulseSource>();
|
||||
}
|
||||
|
||||
source.GenerateImpulse();
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user