Skip to content

Instantly share code, notes, and snippets.

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
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;
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)
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
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 () {