34 lines
539 B
C#
34 lines
539 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|