Browse Source

Added Mouse fungus event demo scene

master
desktop-maesty/steve 8 years ago
parent
commit
bffb790f61
  1. 2753
      Assets/FungusExamples/MonoBehEvents/MouseEvents.unity
  2. 8
      Assets/FungusExamples/MonoBehEvents/MouseEvents.unity.meta
  3. 24
      Assets/FungusExamples/MonoBehEvents/SpriteColorChangeFromFungusMouseEvent.cs
  4. 12
      Assets/FungusExamples/MonoBehEvents/SpriteColorChangeFromFungusMouseEvent.cs.meta

2753
Assets/FungusExamples/MonoBehEvents/MouseEvents.unity

File diff suppressed because it is too large Load Diff

8
Assets/FungusExamples/MonoBehEvents/MouseEvents.unity.meta

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 85e52f4d86ab48841a4622d873337298
timeCreated: 1500106840
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

24
Assets/FungusExamples/MonoBehEvents/SpriteColorChangeFromFungusMouseEvent.cs

@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Fungus
{
namespace Examples
{
public class SpriteColorChangeFromFungusMouseEvent : MonoBehaviour
{
private SpriteRenderer rend;
private void Start()
{
rend = GetComponent<SpriteRenderer>();
}
void OnMouseEventFromFungus()
{
rend.color = Color.HSVToRGB(Random.value, Random.Range(0.7f, 0.9f), Random.Range(0.7f, 0.9f));
}
}
}
}

12
Assets/FungusExamples/MonoBehEvents/SpriteColorChangeFromFungusMouseEvent.cs.meta

@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 11b68bc7e4989f44d98199af76edd420
timeCreated: 1501755452
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save