Example #1
0
 void GameOverLogic(GameObject col)
 {
     if (!GameManagerAB.ISGameOver && col.name.Contains("Dot"))
     {
         GameManagerAB.DOGameOver();
     }
 }
Example #2
0
 void Awake()
 {
     lr         = GetComponent <LineRenderer>();
     lr.enabled = false;
     GM         = FindObjectOfType <GameManagerAB>();
     phare.GetComponent <SpriteRenderer>().color = GM.PhareColor;
     phare.SetActive(false);
     Reset();
 }
Example #3
0
        void Awake()
        {
            self = this;

            audioSource = GetComponent <AudioSource>();

            cam    = Camera.main;
            height = 2f * cam.orthographicSize;

            isGameOver = true;

            CIRCLE.position = new Vector3(0, height / 3f, 0);

            cam.transform.position = new Vector3(0, 0, -10);


            DOTween.Init();

            sizeDot = -1;
        }