public void PerformAction(long playerID) { RoleParentClass unit = playerListAlive[playerID].GetComponent <RoleParentClass>(); if (unit != null) { Debug.LogError("Player Attained"); } else { Debug.LogError("Player Not Attained"); } unit.PerformAction(); }
public void PerformUnitAction(long playerID) { RoleParentClass unitClass = playerListAlive[playerID].GetComponent <RoleParentClass>(); unitClass.PerformAction(); }