void Activate(GoalActivator activator) { m_Activated = true; var eventData = new GoalEventData() { m_Goal = this, m_Activator = activator, }; activator.Activated(eventData); m_Events.GoalActivated.Invoke(eventData); }
public void OnActivatedGoal(GoalEventData eventData) { if (!gameObject.activeInHierarchy) { return; } var spawnPosition = m_Transform.position; var spawnRotation = m_Transform.rotation; m_Sequence = Instantiate(m_SequencePrefab, spawnPosition, spawnRotation); m_Sequence.m_EyesController.m_LookAngle = m_EyesController.m_LookAngle; m_Sequence.Begin(); gameObject.SetActive(false); }
public void OnActivatedGoal(GoalEventData eventData) { GlobalData.DisablePlayMode(); }
public void Activated(GoalEventData eventData) { m_Events.ActivatedGoal.Invoke(eventData); enabled = false; }