Example #1
0
    public static void Main()
    {
        var hackersManager = new HackersManager();
        var engine         = new Engine(hackersManager);

        engine.Run();
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        hackersManager = FindObjectOfType <HackersManager>();

        addTourelleSlot(61);
        addTourelleSlot(25);
        addTourelleSlot(10);
        addTourelleSlot(37);
        addTourelleSlot(40);

        isPaused = false;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        hackersManager = FindObjectOfType <HackersManager>();
        transform.SetParent(hackersManager.gameObject.transform, false); // Luc, je suis ton père

        ownDeathParticlesEM      = ownDeathParticles.emission;
        ownDeathParticlesEM.rate = 0;

        timeOffset = Random.Range(0f, 100f);

        isDead                  = false;
        isPaused                = false;
        pathPosition            = 0;
        hp                      = maxHp;
        speedMultiplier         = 1f;
        coordinates             = hackersManager.coordinates;
        coordinatesCount        = coordinates.Count;
        transform.localPosition = (Vector3)coordinates[pathPosition];  // Spawn à la première coordonnée
        pathPosition++;

        setNextTargetPosition();

        hackersManager.addEnnemi(this);
    }
Example #4
0
 public Engine(HackersManager hackersManager)
 {
     this.hackersManager = hackersManager;
 }