You've already forked taptap2024_GJ_chidouren
增加特效 ,优化道具外观
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Framework.GamePool.manager;
|
||||
using Sirenix.Utilities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Game.Component.SceneProp
|
||||
@@ -20,6 +22,12 @@ namespace Game.Component.SceneProp
|
||||
{
|
||||
if (this.isReady)
|
||||
{
|
||||
if (!this.effectPoolPath.IsNullOrWhitespace ())
|
||||
{
|
||||
var transform1 = this.transform;
|
||||
GamePoolManager.Instance.InstantiatePoolObject<PropEffect_PoolObject> (this.effectPoolPath).transform.position
|
||||
= transform1.position;
|
||||
}
|
||||
var entity = other.gameObject.GetComponent<PlayerEntity> ();
|
||||
this.OnTrigger (entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user