Example #1
0
 void Start()
 {
     StatusPlayer = Player.GetComponent("PlayerStats") as PlayerStats;
     Contororu    = Player.GetComponent("PlayerControl") as PlayerControl;
     Physx        = Player.GetComponent("PlayerPhysics3D") as PlayerPhysics3D;
     Porigon      = terrain.GetComponent("PolygonGenerator") as PolygonGenerator;
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     StatusPlayer    = player.GetComponent("PlayerStats") as PlayerStats;
     MovimentoPlayer = player.GetComponent("PlayerControl") as PlayerControl;
     FisicaPlayer    = player.GetComponent("PlayerPhysics3D") as PlayerPhysics3D;
     DrillWorks      = player.GetComponent("DiggingMechanics") as DiggingMechanics;
     buttonscript    = controller.GetComponent("Buttons") as Buttons;
     texxtu          = GetComponent("Text") as Text;
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     HandlerItem     = player.GetComponent("ItemHandler") as ItemHandler;
     MovimentoPlayer = player.GetComponent("PlayerControl") as PlayerControl;
     FisicaPlayer    = player.GetComponent("PlayerPhysics3D") as PlayerPhysics3D;
     DrillWorks      = player.GetComponent("DiggingMechanics") as DiggingMechanics;
     apertado        = new bool[4];
     //	if (MovimentoPlayer.joystickToggle != 3) gameObject.SetActive(false);
 }
 // Use this for initialization
 void Start()
 {
     tScript        = terrain.GetComponent("PolygonGenerator") as PolygonGenerator;
     PlayerMovement = GetComponent <PlayerControl>();
     PlayerPhysics  = GetComponent <PlayerPhysics3D>();
     PlayerStats    = GetComponent <PlayerStats>();
     AuxSizeY       = 1.5f - transform.localScale.y;
     //		AuxSizeX = (0.5f - transform.localScale.x)/0.25f;
     PlayerMovement.isDigging = 0;
 }
Example #5
0
    // Use this for initialization
    void Start()
    {
        DeltaPosition    = new Vector2(0, 0);
        PlayerPhysics3D  = GetComponent <PlayerPhysics3D>();
        StatusPlayer     = GetComponent <PlayerStats>();
        Paragon          = terrain.GetComponent("PolygonGenerator") as PolygonGenerator;
        animator         = GetComponent <Animator>();
        DiggingMechanics = GetComponent <DiggingMechanics>();

        movementLocked = false;
        PosState       = 0;
        rastro         = new List <Vector2>();
    }
Example #6
0
    void Start()
    {
        cam.transform.position = new Vector3(player.transform.position.x, player.transform.position.y, cam.transform.position.z);
        spawnPlayer();
        StatusPlayer = player.GetComponent("PlayerStats") as PlayerStats;
        textoEvento  = EventTextHolder.GetComponent("EventText") as EventText;

//		//CreateEquips
        // CreateHull
        HullList.Add(new Hull(101, "Basic Hull", 200, 0, "this is a basic hull"));
        HullList.Add(new Hull(102, "armored core", 1000, 0.2f, "Armor ready to combat"));
        HullList.Add(new Hull(103, "impenetrable shield", 13000, 0.5f, "Seriously, you dont need this."));
        HullList.Add(new Hull(104, "Basic Hull 2", 200, 0, "this is a basic hull"));
        HullList.Add(new Hull(105, "armored core 2", 1000, 0.2f, "Armor ready to combat"));
        HullList.Add(new Hull(106, "Cheater", 10, 10.5f, "Filthy Cheater!"));
        //createFuelTank
        FuelTankList.Add(new FuelTank(201, "Basic Fuel Tank", 200, 0, "descrissaum"));
        FuelTankList.Add(new FuelTank(202, "Intermediate Fuel", 1000, 0.35f, "descrissaum"));
        FuelTankList.Add(new FuelTank(203, "Big Fuel", 4500, 0.55f, "I think you need this."));
        FuelTankList.Add(new FuelTank(204, "extra large size", 8500, 0.75f, "Seriously, you dont need this."));
        FuelTankList.Add(new FuelTank(205, "Cheater", 10, 0.995f, "Filthy cheater!"));
        //createDrill
        DrillList.Add(new Drill(301, "Basic Drill", 200, 1f, "descrissaum"));
        DrillList.Add(new Drill(302, "Rock crusher", 1000, 1.2f, "descrissaum"));
        DrillList.Add(new Drill(303, "Rock Destroyer", 13000, 2.0f, "Seriously, you dont need this."));
        //CreateCargo
        CargoList.Add(new Cargo(401, "Basic Cargo", 200, 100, "descrissaum"));
        CargoList.Add(new Cargo(402, "intermediate Cargo", 1000, 180, "descrissaum"));
        CargoList.Add(new Cargo(403, "Bigger Cargo", 4500, 250, "descrissaum"));
        CargoList.Add(new Cargo(404, "Biggest Cargo", 9000, 350, "Seriously, you dont need this."));
        //CreateRocket
        RocketList.Add(new Rocket(501, "Basic Rocket", 200, 1, "descrissaum"));
        RocketList.Add(new Rocket(502, "Sky traveler", 1000, 1.3f, "descrissaum"));
        RocketList.Add(new Rocket(503, "Space Traveler", 13000, 1.8f, "Seriously, you dont need this."));

        StatusPlayer.InitEquips();

        //CreateItens
        ItensList.Add(new PlayerItem(1001, 1, "Basic Bomb", 50, 99, "Blow some shit up!"));
        ItensList.Add(new Teleport(1009, 1, "Teleport Module", 50, 1, "F*****g Teleport!!"));
        StatusPlayer.InitItens();

        //DEFINE O PREÇO
        StatusPlayer.ouro.preço     = goldPrice;
        StatusPlayer.prata.preço    = silverPrice;
        StatusPlayer.bronze.preço   = bronzePrice;
        StatusPlayer.ferro.preço    = ironPrice;
        StatusPlayer.diamante.preço = DiamondPrice;

        //DEFINE O PESO
        StatusPlayer.ouro.espaco     = 20;
        StatusPlayer.prata.espaco    = 15;
        StatusPlayer.bronze.espaco   = 10;
        StatusPlayer.ferro.espaco    = 15;
        StatusPlayer.diamante.espaco = 20;

        MovimentoPlayer = player.GetComponent("PlayerControl") as PlayerControl;
        FisicaPlayer    = player.GetComponent("PlayerPhysics3D") as PlayerPhysics3D;
        DrillWorks      = player.GetComponent("DiggingMechanics") as DiggingMechanics;
        Megalomaniaco   = Megamenu.GetComponent("RefineryMenuControl") as RefineryMenuControl;
        WorkshopScript  = Workshopping.GetComponent("WorkshopMenuControl") as WorkshopMenuControl;

        //DEFINE A SPAWNZONE DE MONSTERS
        SpawnLevel    = new int[10];
        SpawnLevel[0] = 30;

        //ADICIONA A LOCALIZAÇAO DAS CONSTRUÇOES NA LISTA
    }