public void AddMoveActor(Vector3 startPos, Vector3 endPos) { GameObject actor = Instantiate(actorPrefab); actor.SetActive(true); ActorMove actorMove = actor.GetComponent <ActorMove>(); ActorManager.CreateActorMove(actorMove); actorMove.DoMove(aStarFind, startPos, endPos); }
public static void RemoveActorMove(ActorMove actorMove) { actorMoveList.Remove(actorMove); }
public static void CreateActorMove(ActorMove actorMove) { actorMoveList.Add(actorMove); }