void Start()
 {
     playerMovement     = GameObject.Find("player").GetComponent <PlayerMovement>();
     hologramController = GameObject.Find("HologramTarget").GetComponent <HologramController>();
     playerStats        = GameObject.Find("player").GetComponent <PlayerStats>();
     anim = GameObject.Find("player").GetComponent <Animator>();
 }
Exemplo n.º 2
0
    public bool activeShield;//irrelevant code does not do anything. its implamented in about ten different scripts, if removed it will cause a cascade of errors.

    void Start()
    {
        active             = false;
        activeShield       = false;
        rb                 = GetComponent <Rigidbody>();
        currentSpeed       = walkSpeed;
        playerStats        = GetComponent <PlayerStats>();
        upgradeList        = GetComponent <UpgradeList>();
        hologramController = GameObject.Find("HologramTarget").GetComponent <HologramController>();
    }