Fixed class behaviour, fixed fight mechanic, fixed skill usage
This commit is contained in:
@@ -8,7 +8,7 @@ using UnityEngine;
|
||||
|
||||
namespace Assets.Scripts.Classes
|
||||
{
|
||||
public class BasicClass
|
||||
public abstract class BasicClass
|
||||
{
|
||||
public string classname;
|
||||
protected int dexterityBonus;
|
||||
@@ -39,19 +39,23 @@ namespace Assets.Scripts.Classes
|
||||
|
||||
public void loadHandObjects()
|
||||
{
|
||||
GameObject leftHandPrefab = Resources.Load<GameObject>("Prefabs/"+leftHandName);
|
||||
GameObject rightHandPrefab = Resources.Load<GameObject>("Prefabs/"+rightHandName);
|
||||
GameObject leftHandPrefab = Resources.Load<GameObject>("Prefabs/" + leftHandName);
|
||||
GameObject rightHandPrefab = Resources.Load<GameObject>("Prefabs/" + rightHandName);
|
||||
|
||||
GameObject leftHandParent = GameObject.Find("leftHand");
|
||||
GameObject rightHandParent = GameObject.Find("rightHand");
|
||||
|
||||
if(leftHandPrefab != null){
|
||||
if (leftHandPrefab != null)
|
||||
{
|
||||
GameObject leftHand = GameObject.Instantiate(leftHandPrefab, leftHandParent.transform);
|
||||
}
|
||||
|
||||
if(rightHandPrefab != null){
|
||||
if (rightHandPrefab != null)
|
||||
{
|
||||
GameObject rightHand = GameObject.Instantiate(rightHandPrefab, rightHandParent.transform);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void GenerateSkills(BasicSkill[] skills);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user