This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class attack : MonoBehaviour { | |
public Animator anim; | |
static int Hit1 = Animator.StringToHash("Base Layer.attan");//攻擊 | |
public AnimatorStateInfo BS; | |
public bool attackSwitch; | |
// Use this for initialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class walk : MonoBehaviour { | |
public GameObject mainCamera; | |
public Animator anim; //動畫控制器 | |
public float Hor, Ver;//讀取方位值 | |
public float play_rotion;//暫存方向 | |
public attack attackCS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MyCamera : MonoBehaviour { | |
[Header("Camera Properties")] | |
public float DistanceAway; //how far the camera is from the player. | |
public float DistanceUp; //how high the camera is above the player | |
public float smooth = 4.0f; //how smooth the camera moves into place | |
public float rotateAround = 70f; //the angle at which you will rotate the camera (on an axis) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class walk : MonoBehaviour { | |
public GameObject mainCamera; | |
public Animator anim; //動畫控制器 | |
public float Hor, Ver;//讀取方位值 | |
public float play_rotion;//暫存方向 | |
// Use this for initialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class walk : MonoBehaviour { | |
public Animator anim; //動畫控制器 | |
public float Hor, Ver;//讀取方位值 | |
public float play_rotion;//暫存方向 | |
// Use this for initialization | |
void Start () { |