Ejemplo n.º 1
0
 private void Awake()
 {
     instance = this;
     notificationTextMenuTextMesh = notificationTextMenu.GetComponent <TextMeshProUGUI>();
     notificationTextMenuAnimator = notificationTextMenu.GetComponent <Animator>();
     actualClueController         = AnimatedClueController.Instance();
 }
Ejemplo n.º 2
0
    public static AnimatedClueController Instance()
    {
        if (!animatedClueController)
        {
            animatedClueController = FindObjectOfType(typeof(AnimatedClueController)) as AnimatedClueController;
            if (!animatedClueController)
            {
                Debug.LogError("There needs to be one active ObjectiveManager script on a GameObject in your scene.");
            }
        }

        return(animatedClueController);
    }
Ejemplo n.º 3
0
 private void Awake()
 {
     instance = this;
 }