August 2018
Beginner
334 pages
10h 19m
English
Now, we implement the FightingCircle and StageManager classes:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class FightingCircle : MonoBehaviour
{
public int slotCapacity;
public int attackCapacity;
public float attackRadius;
public GameObject player;
[HideInInspector]
public int slotsAvailable;
[HideInInspector]
public int attackAvailable;
[HideInInspector]
public List<GameObject> enemyList;
[HideInInspector]
public Dictionary<int, Vector3> posDict;
}
void Awake() { slotsAvailable = slotCapacity; attackAvailable = attackCapacity; enemyList = new List<GameObject>(); ...Read now
Unlock full access