public override void OnStart() { base.OnStart(); if (leader.Value != null && leaderTree != null) { leaderAgent = new NavMeshFormationAgent(leaderTree.transform); } }
public override void OnAwake() { base.OnAwake(); formationAgent = new NavMeshFormationAgent(transform); }