// Use this for initialization void Start() { activeObject = false; playerState = 1; maxHealth = 5; thiefHealth = maxHealth; wizardHealth = maxHealth; knightHealth = 8; knightAlive = true; thiefAlive = true; wizardAlive = true; deathConfirmed = false; spawnSmoke = false; wizardChild = gameObject.transform.GetChild(0).GetChild(0).gameObject; thiefChild = gameObject.transform.GetChild(1).GetChild(0).gameObject; knightChild = gameObject.transform.GetChild(2).GetChild(0).gameObject; grapple = GetComponent <GrapplingHook>(); bow = GetComponent <Bow>(); mouseFunctionsSummonableCube = summonableCube.GetComponent <MouseFunctions>(); playerRigidbody = gameObject.GetComponent <Rigidbody>(); knightFunctions = gameObject.GetComponent <KnightFunctions>(); particleCube = summonableCube.GetComponent <ParticleSystem>(); playerMovement = gameObject.GetComponent <PlayerMovement>(); thiefSpeed = 10; knightSpeed = 10; wizardSpeed = 10; }
// Use this for initialization void Start() { playerBody = GetComponent <Rigidbody>(); playerAbility = GetComponent <PlayerAbility>(); knightFunctions = GetComponent <KnightFunctions>(); jumpCounter = 0; pressedJumped = false; isDragging = false; }