Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        camControleActuel = this;

        controleSouris = FindObjectOfType <ControleSouris>();
        vecteurMove    = transform.position;
    }
 // Update is called once per frame
 void Update()
 {
     if (scriptCamera == null)
     {
         scriptCamera = Camera.main.gameObject.GetComponent <CameraControle>();
     }
 }
Example #3
0
    // Use this for initialization
    void Start()
    {
        vidaAtual            = vidaInicial;
        timeBetweenDropStore = timeBetweenDrops;
        dropCount            = timeBetweenDrops;
        platformCount        = waitForPlatform;

        theBoss.transform.position = pontoDir.position;
        bossDir = true;

        theCamera = FindObjectOfType <CameraControle>();

        theLevelManager = FindObjectOfType <LevelManager>();
    }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     camControle = FindObjectOfType <CameraControle>();
     InitMasks();
 }