WGL 4 kuukautta sitten
vanhempi
commit
7d83343fb7

+ 11 - 2
ActionTowerDefense/Assets/Scripts/Characters/PlayerController.cs

@@ -25,11 +25,14 @@ public class PlayerController : MoveCharacter
     [FoldoutGroup("×é¼þ")] public Collider soulCollector;
     [FoldoutGroup("×é¼þ")] public SkeletonMecanim skeletonMecanim;
     [FoldoutGroup("×é¼þ")] public WallTrigger wallTrigger;
+    [FoldoutGroup("×é¼þ")] public PlayerFX playerFX;
     private Spirits spirits;
     private SpiritSystem spiritSystem;
     private ScreenShake ss;
     private ConductController conductController;
 
+    //
+
     [Header("À¶ºÄ")]
     public float mp;
     public float totalMp;
@@ -399,6 +402,10 @@ public class PlayerController : MoveCharacter
         {
             isKeepBtnRush = true;
         }
+        if (foot.TrigGround)
+        {
+            //playerFX.
+        }
     }
 
 
@@ -992,7 +999,8 @@ public class PlayerController : MoveCharacter
                 }
                 if(!foot.haveGravity)
                 {
-                    transform.position = new Vector3(transform.position.x, platformY, transform.position.z);
+                    transform.position = new Vector3(transform.position.x, platformPosY, transform.position.z);
+                    //transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, platformRotZ);
                 }
                
                 if (isToWall)
@@ -1032,7 +1040,8 @@ public class PlayerController : MoveCharacter
                 velocity.y = 0;
                 if (!foot.haveGravity)
                 {
-                    transform.position = new Vector3(transform.position.x, platformY, transform.position.z);
+                    transform.position = new Vector3(transform.position.x, platformPosY, transform.position.z);
+                    //transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, platformRotZ);
                 }
 
                 rb.velocity = velocity;

+ 24 - 0
ActionTowerDefense/Assets/Scripts/Characters/PlayerFX.cs

@@ -0,0 +1,24 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerFX : MonoBehaviour
+{
+    public GameObject Water_Ring;
+
+    [DisplayOnly] public GameObject Fx;
+    public PlayerController owner;
+    
+    void Start()
+    {
+        
+    }
+
+    public void newOne()
+    {
+        Fx = Instantiate(Water_Ring);
+        Fx.SetActive(false);
+        Fx.transform.position = transform.position;
+    }
+
+}

+ 11 - 0
ActionTowerDefense/Assets/Scripts/Characters/PlayerFX.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e6df14c58265aa94a8cccacf308b8fed
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: