mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-30 08:57:59 +01:00
35 lines
871 B
C#
35 lines
871 B
C#
|
using ParticlePlayground;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Object
|
||
|
{
|
||
|
[FiePrefabInfo("Prefabs/PlayerCommon/FiePlayerArrival")]
|
||
|
public class FieEmitObjectPoniesArrival : FieEmittableObjectBase
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private float ARRIVAL_EFFECT_DURATION = 3.5f;
|
||
|
|
||
|
[SerializeField]
|
||
|
private PlaygroundParticlesC _myPlayGround;
|
||
|
|
||
|
public override void awakeEmitObject()
|
||
|
{
|
||
|
destoryEmitObject(ARRIVAL_EFFECT_DURATION);
|
||
|
}
|
||
|
|
||
|
public void SetSubMeshObject(GameObject submeshObject)
|
||
|
{
|
||
|
if (!(_myPlayGround == null) && _myPlayGround.manipulators.Count > 0)
|
||
|
{
|
||
|
foreach (ManipulatorObjectC manipulator in _myPlayGround.manipulators)
|
||
|
{
|
||
|
if (manipulator.type == MANIPULATORTYPEC.Property && manipulator.property.type == MANIPULATORPROPERTYTYPEC.MeshTarget)
|
||
|
{
|
||
|
manipulator.property.meshTarget.gameObject = submeshObject;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|