Swords and Soldiers III


Dit was een school project ongeveer 4 uur per week en dat in een periode van 4 weken. Het is een parodie op Swords and Soldiers. We hebben het gemaakt in Unity3d.

Ik heb gewerkt aan de healthbars, de enemys met scriptable objects en het menu.

 

Tools:

  • Unity3d
  • Visuals Studio C#
  • Tello

 

Team:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "ScriptableObjects/Character")]
public class ScriptableCharacterObject : ScriptableObject
{
[SerializeField]
private string UnitType;
[SerializeField]
private GameObject prefab;
[SerializeField]
private int Cost;
[SerializeField]
private float movementSpeed;
[SerializeField]
private float attackSpeed;
[SerializeField]
private float attackDamage;
[SerializeField]
private float health;
[SerializeField]
private string teamName;
public GameObject GetPrefab()
{
return prefab;
}
public float GetMovementSpeed()
{
return movementSpeed;
}
public float GetAttackSpeed()
{
return attackSpeed;
}
public float GetHealth()
{
return health;
}
public string GetTeamName()
{
return teamName;
}
public float GetAttackDamage()
{
return attackDamage;
}
public int SpawnCost()
{
return Cost;
}
public string TypeOunit()
{
return UnitType;
}
}