Exemplo n.º 1
0
    void Start()
    {
        PopUpController.Init();

        //Tutaj dodalem pobieranie najblizszej wiezy z managera
        tower = TowersManager.Instance.GetClosestTower(transform);

        myMaterial     = myRenderer.material;
        defaultTexture = myMaterial.mainTexture;

        parent = GameObject.Find("Enemies");
        if (!parent)
        {
            parent = new GameObject("Enemies");
            parent.transform.position = Vector3.zero;
        }

        transform.parent = parent.transform;
        //SetHealth(maxHealth);
        axeCollider.enabled = false;

        GetComponents();


        myAgent.speed        = startSpeed;
        myAgent.acceleration = startAccelaration;
        myAgent.angularSpeed = startRotationSpeed;
        fadeDuration         = playerAbilities.rageFade.fadeDuration;

        StartCoroutine(UpdateTarget());           //Tutaj się wywołuje Korutyna, która odpowiada za Updatowanie Cel, który przeciwnik ma gonić
    }
Exemplo n.º 2
0
 public void Init()
 {
     loginScreenController.Init();
     timerScreenController.Init();
     mainMenuScreenController.Init();
     blogScreenController.Init();
     leaderboardScreenController.Init();
     joystickScreenController.Init();
     cloudScreenController.Init();
     swipeScreenController.Init();
     waitingScreenController.Init();
     toggleScreenController.Init();
     videoScreenController.Init();
     footerController.Init();
     popUpController.Init();
 }