41 lines
663 B
C#
41 lines
663 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class WeakSpot : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
public GameObject Head;
|
|
public GameObject LeftHand;
|
|
public GameObject RightHand;
|
|
public GameObject Leftleg;
|
|
public GameObject Rightleg;
|
|
public GameObject chest;
|
|
|
|
public enum BodyPoint
|
|
{
|
|
Head,
|
|
LeftHand,
|
|
RightHand,
|
|
Leftleg,
|
|
Rightleg,
|
|
chest
|
|
}
|
|
|
|
|
|
public void FindBody(BodyPoint point)
|
|
{
|
|
switch (point) {
|
|
|
|
case BodyPoint.Head:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|