void Start() { PersistenceKey = transform.position; _controller = GameObject.FindGameObjectWithTag(SuriAlFuturo.Tag.GameController) .GetComponent <CollectionSystem>(); _controller.Load(this); }
void Start() { PersistenceKey = transform.position; _gameController = GameObject.FindGameObjectWithTag(Tag.GameController) .GetComponent <GameController>(); _controller = _gameController.GetComponent <CollectionSystem>(); _navMeshObstacle = Obstacle.GetComponent <NavMeshObstacle>(); _animator = Model.GetComponent <Animator>(); _controller.Blockers.Add(this); _navMeshAgent = TheTalkable.GetComponent <NavMeshAgent>(); _navMeshAgent.enabled = false; _controller.Load(this); _canTake = false; }