Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        theEnemyMovement      = FindObjectOfType <enemyMovement>();
        theDemonEnemyScript   = FindObjectOfType <DemonEnemyScript>();
        theRollyScript        = FindObjectOfType <RollyScript>();
        theBossSpoooderScript = FindObjectOfType <BossSpoooderScript>();
        theBossRollyScript    = FindObjectOfType <BossRollyScript>();
        pickaxePoint1         = FindObjectOfType <PickaxePointScript>();
        theManager            = FindObjectOfType <manager>();

        theCharacterMovement = FindObjectOfType <characterMovement>();
        isOnGroundLeft       = false;
        isOnGroundRight      = false;
    }
Beispiel #2
0
 public void HurtEnemyMethod(DemonEnemyScript objectToHurt, float damageToTake)
 {
     objectToHurt.enemyHealth -= damageToTake;
 }