//public GameObject hookIndicator;
    //private GameObject currentFarthestHook;

    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
    }
Example #2
0
 private void Start()
 {
     SHM                = SpawnHookManager.instance;
     AM                 = AuxManager.instance;
     PM                 = PlayerManager.instance;
     player             = AM.GetPlayer();
     transform.position = player.transform.position;
     ShowMainMenu();
     //bestScoreMainMenuText.text = "Best Score: " + GetBestScore();
     heartList = new List <GameObject>();
 }