|
@@ -10,6 +10,7 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
public GameObject player;
|
|
public GameObject player;
|
|
|
[HideInInspector]
|
|
[HideInInspector]
|
|
|
public PlayerController playerController;
|
|
public PlayerController playerController;
|
|
|
|
|
+ public float changeTime;
|
|
|
public float addMp;
|
|
public float addMp;
|
|
|
public InvisibleSoulCollector soulCollector;
|
|
public InvisibleSoulCollector soulCollector;
|
|
|
public GameObject soulPrefab;
|
|
public GameObject soulPrefab;
|
|
@@ -28,11 +29,13 @@ public class Trans_Invisible : MonoBehaviour
|
|
|
public float kMp;
|
|
public float kMp;
|
|
|
public float magnification;
|
|
public float magnification;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
private void Start()
|
|
private void Start()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
player = PlayersInput.instance[demonic.playerID].gameObject;
|
|
player = PlayersInput.instance[demonic.playerID].gameObject;
|
|
|
playerController = player.GetComponent<PlayerController>();
|
|
playerController = player.GetComponent<PlayerController>();
|
|
|
|
|
+ playerController.changeTime = changeTime;
|
|
|
playerController.uiHp.gameObject.SetActive(false);
|
|
playerController.uiHp.gameObject.SetActive(false);
|
|
|
playerController.isInvisible = true;
|
|
playerController.isInvisible = true;
|
|
|
playerController.mp += addMp;
|
|
playerController.mp += addMp;
|