|
|
|
|
|
|
PushBlockSettings m_PushBlockSettings; |
|
|
|
|
|
|
|
private int m_NumberOfRemainingBlocks; |
|
|
|
private PushBlockTeamManager m_TeamManager; |
|
|
|
|
|
|
|
void Start() |
|
|
|
{ |
|
|
|
|
|
|
item.StartingRot = item.T.transform.rotation; |
|
|
|
item.Rb = item.T.GetComponent<Rigidbody>(); |
|
|
|
} |
|
|
|
// Initialize TeamManager
|
|
|
|
m_TeamManager = new PushBlockTeamManager(); |
|
|
|
foreach (var item in AgentsList) |
|
|
|
{ |
|
|
|
item.StartingPos = item.Agent.transform.position; |
|
|
|
|
|
|
// Add to team manager
|
|
|
|
item.Agent.SetTeamManager(m_TeamManager); |
|
|
|
} |
|
|
|
foreach (var item in ZombiesList) |
|
|
|
{ |
|
|
|