You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			72 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			72 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C#
		
	
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| 
 | |
| namespace Game
 | |
| {
 | |
|     public abstract partial class GameConst
 | |
|     {
 | |
|         public static Vector3 NoneDir = new Vector3();
 | |
|         public static Vector3 Stop = Vector3.zero;
 | |
|         public static Vector3 Left = Vector3.left;
 | |
|         public static Vector3 Right = Vector3.right;
 | |
|         public static Vector3 Up = Vector3.forward;
 | |
|         public static Vector3 Down = Vector3.back;
 | |
|         public static Vector3 UpLeft = new Vector3(-1, 0, 1).normalized;
 | |
|         public static Vector3 UpRight = new Vector3(1, 0, 1).normalized;
 | |
|         public static Vector3 DownLeft = new Vector3(-1, 0, -1).normalized;
 | |
|         public static Vector3 DownRight = new Vector3(1, 0, -1).normalized;
 | |
| 
 | |
|         public static readonly Dictionary<EMoveCommand, Vector3> MoveCommand2Dir =
 | |
|             new Dictionary<EMoveCommand, Vector3>()
 | |
|             {
 | |
|                 { EMoveCommand.Stop, Stop },
 | |
|                 { EMoveCommand.Left, Left },
 | |
|                 { EMoveCommand.Right, Right },
 | |
|                 { EMoveCommand.Up, Up },
 | |
|                 { EMoveCommand.Down, Down },
 | |
|                 { EMoveCommand.UpLeft, UpLeft },
 | |
|                 { EMoveCommand.UpRight, UpRight },
 | |
|                 { EMoveCommand.DownLeft, DownLeft },
 | |
|                 { EMoveCommand.DownRight, DownRight },
 | |
|                 { EMoveCommand.Jump, NoneDir },
 | |
|                 { EMoveCommand.JumpRelease, NoneDir },
 | |
|             };
 | |
| 
 | |
|         public static readonly List<string> AllAnimationState = new List<string>()
 | |
|         {
 | |
|             "airhit1",
 | |
|             "airhit2_loop",
 | |
|             "airhit3",
 | |
|             "airhit4_loop",
 | |
|             "airhit5",
 | |
|             "airhit5_stun",
 | |
|             "airhit9",
 | |
|             "die1",
 | |
|             "die2_loop",
 | |
|             "hit1",
 | |
|             "hit2_loop",
 | |
|             "hit3",
 | |
|             "mhit1",
 | |
|             "mhit2_loop",
 | |
|             "mhit3",
 | |
|             "lhit1",
 | |
|             "lhit2_loop",
 | |
|             "lhit3",
 | |
|             "stunhit",
 | |
|             "ground_stun1_loop",
 | |
|             "ground_stun2",
 | |
|             "ground1_loop",
 | |
|             "ground2",
 | |
|             "idle_loop",
 | |
|             "jump1",
 | |
|             "jump2_loop",
 | |
|             "jump3",
 | |
|             "jump4_loop",
 | |
|             "jump5",
 | |
|             "rebound",
 | |
|             "run1",
 | |
|             "run2_loop",
 | |
|             "run3",
 | |
|         };
 | |
|     }
 | |
| } |