Decompiled source of CoconutMall v2.1.1

CoconutMallScripts.dll

Decompiled 3 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("CoconutMallScripts")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CoconutMallScripts")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("1948887e-91cc-456a-9add-90fa8a5a1bd0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace CoconutMallScripts;

public class ThwompAudio : MonoBehaviour
{
	private AudioSource soundFX;

	private void Start()
	{
		soundFX = ((Component)this).GetComponent<AudioSource>();
	}

	public void playSound()
	{
		soundFX.Play();
	}
}
public class ThwompTrigger : MonoBehaviour
{
	[SerializeField]
	private Animator thwompAnimation;

	private void OnTriggerEnter(Collider other)
	{
		if (((Component)other).CompareTag("Player"))
		{
			thwompAnimation.SetTrigger("Interaction");
		}
	}
}