Beispiel #1
0
    void Start()
    {
        //if (!wander) wander = this.GetComponent<WanderScript>();
        if (!damageCounterManager)
        {
            damageCounterManager = GameObject.FindObjectOfType <DamageCounterManager>();
        }
        if (!healthBarManager)
        {
            healthBarManager = GameObject.FindObjectOfType <HealthBarManager>();
        }
        if (!movement)
        {
            movement = GetComponent <WalkyWalkyScript>();
        }

        spawnPoint    = transform.position;
        spawnRotation = transform.rotation;

        if (healthBarManager && !GetComponent <RaidBossController>())
        {
            healthBar = healthBarManager.Add(this);
        }

        if (EquipmentStats == null)
        {
            EquipmentStats = new EquipmentStats();
        }
        if (Stats == null)
        {
            Stats = new Skills();
        }
    }
Beispiel #2
0
    void Start()
    {
        //if (!wander) wander = this.GetComponent<WanderScript>();
        if (!damageCounterManager)
        {
            this.damageCounterManager = GameObject.FindObjectOfType <DamageCounterManager>();
        }
        if (!healthBarManager)
        {
            this.healthBarManager = GameObject.FindObjectOfType <HealthBarManager>();
        }
        if (!walker)
        {
            this.walker = this.GetComponent <WalkyWalkyScript>();
        }

        this.spawnPoint    = this.transform.position;
        this.spawnRotation = this.transform.rotation;

        if (healthBarManager && !this.GetComponent <RaidBossController>())
        {
            healthBarManager.Add(this);
        }

        if (EquipmentStats == null)
        {
            EquipmentStats = new EquipmentStats();
        }
        if (Stats == null)
        {
            Stats = new Skills();
        }

        this.rbody = GetComponent <Rigidbody>();
        this.agent = GetComponent <NavMeshAgent>();
    }
Beispiel #3
0
    void Start()
    {
        if (!Equipment)
        {
            Equipment = GetComponent <PlayerEquipment>();
        }
        if (!Inventory)
        {
            Inventory = GetComponent <Inventory>();
        }
        if (!healthBarManager)
        {
            healthBarManager = FindObjectOfType <HealthBarManager>();
        }
        if (!agent)
        {
            agent = GetComponent <NavMeshAgent>();
        }
        if (!chunkManager)
        {
            chunkManager = FindObjectOfType <ChunkManager>();
        }
        if (!gameManager)
        {
            gameManager = FindObjectOfType <GameManager>();
        }

        if (!Equipment)
        {
            Equipment = GetComponent <PlayerEquipment>();
        }
        if (!rbody)
        {
            rbody = GetComponent <Rigidbody>();
        }

        if (!raidHandler)
        {
            raidHandler = GetComponent <RaidHandler>();
        }
        if (!arenaHandler)
        {
            arenaHandler = GetComponent <ArenaHandler>();
        }
        if (!duelHandler)
        {
            duelHandler = GetComponent <DuelHandler>();
        }
        if (!combatHandler)
        {
            combatHandler = GetComponent <CombatHandler>();
        }

        if (!playerAppearance)
        {
            playerAppearance = GetComponent <PlayerAppearance>();
        }
        if (!playerAnimations)
        {
            playerAnimations = GetComponent <PlayerAnimationController>();
        }

        if (healthBarManager)
        {
            healthBarManager.Add(this);
        }
    }