added animation package and made small changes

This commit is contained in:
Lorenzo
2022-12-06 17:46:58 +01:00
parent 564ec183d7
commit 3f3323449f
3440 changed files with 12815908 additions and 344 deletions

View File

@@ -0,0 +1,91 @@
// =================================
// Namespaces.
// =================================
using UnityEngine;
using UnityEngine.UI;
// =================================
// Define namespace.
// =================================
namespace MirzaBeig
{
namespace Demos
{
namespace ParticlePlayground
{
// =================================
// Classes.
// =================================
public class BillboardCameraPlaneUVFX : MonoBehaviour
{
// =================================
// Nested classes and structures.
// =================================
// ...
// =================================
// Variables.
// =================================
// ...
Transform cameraTransform;
// =================================
// Functions.
// =================================
void Awake()
{
}
// ...
void Start()
{
cameraTransform = Camera.main.transform;
}
// ...
void Update()
{
}
// ...
void LateUpdate()
{
transform.forward = -cameraTransform.forward;
}
// =================================
// End functions.
// =================================
}
// =================================
// End namespace.
// =================================
}
}
}
// =================================
// --END-- //
// =================================

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 68dcc51f4e150cd4ab04febbff3abf83
timeCreated: 1475038359
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,128 @@
// =================================
// Namespaces.
// =================================
using UnityEngine;
// =================================
// Define namespace.
// =================================
namespace MirzaBeig
{
namespace Demos
{
namespace Wallpapers
{
// =================================
// Classes.
// =================================
public class GravityClockInteractivityUVFX : MonoBehaviour
{
// =================================
// Nested classes and structures.
// =================================
// ...
// =================================
// Variables.
// =================================
// ...
public GameObject forceAffectors;
public GameObject forceAffectors2;
public ParticleSystem gravityClockPrefab;
ParticleSystem gravityClock;
public bool enableGravityClockVisualEffects = true;
public bool enableGravityClockAttractionForce = true;
// =================================
// Functions.
// =================================
void Awake()
{
}
// ...
void Start()
{
}
// ...
void Update()
{
}
// ...
public void SetGravityClockVisualEffectsActive(bool value)
{
if (value)
{
if (enableGravityClockVisualEffects)
{
gravityClock = Instantiate(gravityClockPrefab, transform);
gravityClock.transform.localPosition = Vector3.zero;
}
}
else
{
if (gravityClock)
{
gravityClock.Stop();
gravityClock.transform.SetParent(null, true);
}
}
}
public void SetGravityClockAttractionForceActive(bool value)
{
if (value)
{
if (enableGravityClockAttractionForce)
{
forceAffectors.gameObject.SetActive(true);
forceAffectors2.gameObject.SetActive(true);
}
}
else
{
forceAffectors.gameObject.SetActive(false);
forceAffectors2.gameObject.SetActive(false);
}
}
// =================================
// End functions.
// =================================
}
// =================================
// End namespace.
// =================================
}
}
}
// =================================
// --END-- //
// =================================

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 2c1ff5208a739eb4d8ff3bac715e91e6
timeCreated: 1475038359
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: